Skip to main content

All Questions

0 votes
0 answers
74 views

option group like horizontal menu

i have group option like this: <select name="cars" id="cars"> <optgroup label="Swedish Cars"> <option value="volvo">Volvo</option> <option value="saab"&...
Sina's user avatar
  • 37
1 vote
1 answer
28 views

Depended drop down values

I'm using the dependent dropdown with javascript where the value of other select changes on the base of the previous selection. My problem is when I save data its send the digits in the database ...
farooq's user avatar
  • 31
0 votes
2 answers
2k views

how do I check if an a href contains aria-current. And if true execute code to parent and siblings. using jquery

I have an a tag. <a href="#" aria-current="page">Disarray Body</a> When the link is open. the browser adds ==>aria-current="page". How can I select that element with the atribute of ...
Bert Coninx's user avatar
1 vote
1 answer
119 views

Populate selectors using json doesn't work as expected

I am trying to make two selector's populated with JSON. One for states and one for cities. If i choose a state the next selector is supposed to show me the cities that are in that state. I've made it ...
T x's user avatar
  • 37
1 vote
1 answer
98 views

Jquery selector to get dropdown by its value

I cant find a way to find a dropdown with certain value. ex1: $('[value="' + $(e.currentTarget).attr('name') + '"]') Gives me the option with the value. ex2: $('[value="' + $(e.currentTarget)....
Leonel Matias Domingos's user avatar
0 votes
1 answer
640 views

Copy, paste and cut operations on Textarea

Hi All, I'm trying put some features to textarea like copy, cut and paste buttons but even I tried many times I couldn't get only part of text inside of textarea. it comes all content. My Code below:...
rtaskiran0's user avatar
0 votes
1 answer
2k views

how hide and show in html element by click select option

How hide and show in html element when i click on selected option link http://codepen.io/hesham-farag/pen/zNMXxJ html <label class="control-label" for=""> trans 'Free</label> <...
Hefm's user avatar
  • 61
0 votes
1 answer
31 views

Gather current variables from multiple select forms

I am trying to gather all the current choices from 4 different select forms in one function. Then I am going to output a price according to the choices. I can already output the separate choices for ...
Vilius Bivainis's user avatar
0 votes
2 answers
27 views

How to select <select> elements with no html in them through JQuery

I have following html select elements <select id="options1" title="prd_name" name="options"> <option value="optiona">Option A</option> <option value="optionb"&...
UmarAbbasKhan's user avatar
0 votes
1 answer
460 views

jquery selector for a select optiongroup with a specific label value

I have a select multiple with option groups: <select _ngcontent-oeq-14="" class="form-control" id="category-select" multiple=""> <optgroup label="grocery products"> <option>...
BeniaminoBaggins's user avatar
0 votes
2 answers
613 views

Select concatenated: if selected option have value 1, show another select

I've this problem. I want to show another select only if I choose YES in option, that have value = 1 <select id="select_one"> <option value="1">Yes</option> <...
Riccardo Dell'Omo's user avatar
-1 votes
4 answers
3k views

check which item is selected from a list using selenium webdriver

I have a select html item. <select name="badge" data-validate="true"><option value="">none</option><option value="usd">USD</option> <option value="eur">EURO</...
Elad Benda's user avatar
  • 36.1k
0 votes
1 answer
48 views

Getting the Un-selected values from the listbox

I am using jquery Ui Multiselect plugin , I would use $('#select').val(); to get the selected values from (values at right box) . But how to get the un-selceted values from the select . (it is a ...
Santhosh's user avatar
  • 8,207
5 votes
3 answers
81 views

jquery - finding the first select that has the first value selected?

I've got a number of select dropdowns, and the first value of all is empty (ie ""). What is the best way of selecting the FIRST select whose value is ""? I've been trying things like $j("[id*='...
grimmwerks's user avatar
3 votes
2 answers
18k views

Select2: Showing multiple selected values

Similar to this FIDDLE, how would you get is to show more than one selected value on load? <select multiple> <option value="1">One</option> <option value="2">Two</...
morne's user avatar
  • 4,121

15 30 50 per page