Tagged Questions
0
votes
2answers
14 views
problems with choosing option value of a select appending the option tag to jquery
my problem is the following.
I have an HTML file, a .XML file and a jQuery file.
In the first one i have two select tags, first of them is visible and the second is hidden.
If i choose the option ...
0
votes
2answers
31 views
Add select box to html using jQuery
my english is'nt very good, so shortly..
Where I have error please in my code?
<script src="js/jquery-1.5.1.min.js" type="text/javascript" /></script>
<script>
...
0
votes
1answer
23 views
Comparing javascript array with select:option values
I have a simple drop-down select menu with HTML. When I click an option, its value gets added to an array called exceptions. I want to make sure the option value does not already exist in the array ...
0
votes
5answers
32 views
jQuery event when particular option is selected
I want to add code into a div when a particular option from a select is selected.
This is the code, and I don't know why is not working.
<select id="selectbasic ref" name="selectbasic ...
-3
votes
2answers
34 views
Codeigniter jquery
I need your help.
I have a problem with dropdown value. I can't save value from dropdown list,which has appeared.
I did everything like this example, but I have appearing , not .
And the problem is ...
4
votes
1answer
94 views
How to sort <option> generated dynamically in <select> [duplicate]
I have 4 fields that are generated based on the input of the previous one, like in a tree list. Example:
<select id="confederation">
<option value="">Confederation</option>
...
2
votes
4answers
47 views
How to sort fields in a <select> list but ignore one option
I have the following script that sorts the values of a list alphabetically because this list changes according to the language of the website.
<select style="width:250px" id="list1">
...
0
votes
0answers
22 views
Added a new column to mysql table, now PDO will not insert
I have a MySQL table with 5 columns:
resourceID (A_I), resourceName, resourceURL, categoryID, addedBy
The column categoryID is a new addition. Before adding this column, my PDO worked just fine. ...
2
votes
2answers
74 views
get selected month value in dropdown list if using an array
I am trying to get the selected value in the drop down; but the items inside it are in an array. How can I get the value of the selected option?
For now, I have these lines of code:
<?php
// ...
0
votes
0answers
10 views
JavaScript with SQL filed select/option html
I am working on a project that has two selects in an html form. I have the first select box filled with clients and the second one I want to be filled with projects for those clients. I have a rough ...
0
votes
2answers
28 views
PHP - How to echo selected option on page when the user selects an option and is updated on change?
I have a foreach statement on my Select menu to generate options on my list. I need a why to pull the selected option to the page and tell the user what they are currently selecting.
Here is my code:
...
4
votes
1answer
102 views
How to format text of option values inside of a select tag?
I have a list of table items that when a copy button is pressed, all the table items concatenate into one text box, get selected, and get put on windows clipboard. The boxes are formatted like so.
...
0
votes
1answer
66 views
Using href links inside <option> tag with jquery in the way
I have the following code :
<div class="dropdownmenu">
<select multiple id="cd-dropdown" name="dropdown-menu" class="cd-select">
<option value="-1" ...
1
vote
2answers
69 views
Displaying an image when selecting an option from a drop down list
I'm trying to change an image upon selection of an option in a drop down list:
function volvoCar()
{
var img = document.getElementById("image");
img.src="volvo.png";
return false;
}
And so on for ...
0
votes
1answer
56 views
Dropdown onchange does not change value for second dropdown [closed]
I'm learning Javascript and trying to do the following:
In my first dropdown I want to show all the continents.
In my second dropdown I want to show all the countries.
For example:
First dropdown:
...