All Questions
69
questions
0
votes
1
answer
49
views
jquery-editable-select is not working in asp.net dropdownlist
I am trying to implement jquery-editable-select in asp.net dropdownlist tools but its not working while the same thing is working in html select dropdownlist
Here is the code of Html Select ...
1
vote
2
answers
656
views
select 2 jquery custom attribute country name with capital name
I'm trying to add a custom attribute to select 2 options, Even if I search with "data-name" the option should show up
<select name="countries" class="vat" id="...
0
votes
2
answers
1k
views
If the selected option is greater than others, disable other options
I have two Selectbox groups.
When the user selects an item from the 1st Selectbox group; According to the selected Value, I want to disable some of the items in the 2nd Selectbox group.
Below is my ...
0
votes
1
answer
967
views
How to add dynamic selected option to a dynamically populated select list?
I'm trying to set the selected option text for a select menu to be whatever location is - this parameter has been passed into the updateDepartment function dynamically from a previous PHP request.
The ...
2
votes
2
answers
1k
views
how to display a generated select option based on its row in a dynamic select box
I have some problem with displaying a select option after i add a new one in dynamic select box. So the one i have here display the result of first row select box. While i change the qty and click ...
0
votes
1
answer
84
views
Change option list text value based on <a> click
HTML
<select id="sel">
<option>A</option>
<option>B</option>
<option>C</option>
<option>D</option>
<option>E&...
0
votes
1
answer
1k
views
How do I save the value of this PHP dropdown using jQuery? [duplicate]
I have this dropdown menu in PHP and I would like to get the selected value in jQuery:
<p>
Choose device type :
<?php
echo "<select id='...
0
votes
2
answers
598
views
How do I choose the selected "<option>" of an HTML "<select>" by it's text content in JavaScript? [closed]
I have the following HTML <select> element:
<select id="account" class="form-control" name="account">
<option value="USFSDsdfsFLIJSD656FKLLS5admFOWEJF0SOF">5265241</option>
...
0
votes
2
answers
336
views
Delete item from dropdown menu with jQuery doesn't work
I found several topics here about removing items from a dropdown HTML element. However, when I try it, it fails from a script, but works in the console in browser.
The rest of the script works fine, ...
0
votes
1
answer
43
views
Change color of HTML <option> Tag using id element after being clicked
I tried to find a solution for this but i haven't found what i want.
this is an example :
<div class="custom-select" style="width:200px;">
<select>
<option value="0">Select ...
3
votes
2
answers
3k
views
Getting values from dropdown list jquery in the same class
Is it possible to get the values from two different dropdown list in the same class whenever either of them is clicked in jQuery without having to write two change functions. For instance:
<...
0
votes
2
answers
282
views
Get original value of select option
I have a button on a page to have users revert an input field option to what the original value was
val = inputfield.text()
if (!val){
val = $(inputfield).attr("value")
}
inputfield.val(val)
...
0
votes
2
answers
2k
views
Reset Dropdown Menu to First Option After OnClick
I have a drop down menu like below:
<select onChange="window.open(this.value)">
<option selected="selected" value="">--select an url--</option>
<option value="URL1">URL1</...
2
votes
1
answer
40
views
My select box is being narrowed to two entries when I need to show more
The problem is that my select box items are being narrowed to 2 items
The selected item and all.
I need it to show all the items for
function filterTheData() {
debugger;
var ...
2
votes
2
answers
2k
views
Set selected value on dynamic dropdown list
I have the below code, so the user can select the language he desire:
<label style="float: left; width: 50%;" for="system_language">Select Language:</label>
<select id="...