I'm looking for some help with drop-down lists.The lists below are populated by lists.js (a script that was kindly written by a friend).What I need to happen is that as soon as an option within one of the lists is selected, the other four become disabled.I'm afraid I've no clue where to start (and I think I have prevailed on my friend's patience for long enough!)
I have the requirement of autoupdating the drop down lists , when a selectin is done in another drop down box. I dont have a server through which i can make it dynamic. I have to hard code it in the html. Can someone suggest anything.
I've tried w3schools, tizag, and google, but haven't found exactly what I need. I need some way of easily figuring out which option in a drop down menu is checked, through the use of javascript, like how you can use document.formname.elementname[i].checked to find out which checkbox/radio button is checked. Anything that would return something that allows me to figure out which option has been chosen. I will need to have a function with 3 if statements, one for each option.
I am trying to create simple JS code for two drop down lists...and I am unable to made anything work. Here are the specs:
On my asp page, I need two drop down lists, the first for a four position year (2006, 2005 , 2004, etc) and the second is for two position month. The hook is that I would like them to dynamically update in relation to the present date. Example...present month and year is 03/06. If I select 񟭆' from the year drop down - my only options for the month dropdown should be ༿', ༾', & ༽'. Next month (04/06), my options for the month dropdown should be ཀ', ༿', ༾', & ༽'. If I select 񟭅' - my options for the month drop down should include all 12 months.
I would like this to update dynamically...with no hard coded dates. The range would be now to 5 years prior. It seems like it should be easy but I just can't get the darn thing.
I am making a webpage with two dropdown menus. First I have a dropdown menu with a list of 235 countries. When one country is selected from this list the contents of the next dropdown menu is decided from a coresponding file containing a huge amount of cities. The biggest of these files being 6 MB.
Getting different advices I have now to different sets of code doing this thing. Does anyone know if any of these two sets of code is suitable for what I want? Code:
Any plugin/website that is jQuery, which will do what this Dojo example does, i.e: [URL]. I am wanting something similar to this as I would like to use as a means of allowing a user to administer a menu structure.
I am playing with an idea I found, here is a demo, And while I like it's function, I would like to make a couple mods. 1) How do I remove an item from the built/filled image list
I have created a jquery sortable list page where the user can move and drop elements between lists. The lists are <li>. how to get serialize to work. Here is a link for a serialize script that I am trying to use. [URL] I program in classic asp and don't understand javascript particularly well.
came across this forum while searching for an example of how to do something in Javascript, and found the post helpful, but didn't quite answer my query completely... It was a very old thread, few years old, though so I thought best not to revive it from the murky depths :)Basically, I very rarely use JavaScript... in fact, I rarely do any programming at all, but I'm trying to build a basic site at the moment, and I'm wanting to disable/enable a text box based on the value of a drop down menu...The idea behind it is that I have a sub title, and in the admin panel, I want to be able to set whether the sub title is picked randomly from a database, or whether it chooses one, and only one...So in the admin panel, I've got a page that has a drop down menu with two options. Static, and Random. Below this, I've got a text box called Static ID... In this text box, the administrator would insert the database row ID for the specific sub title they want...
Obviously this Static ID field only applies if you select a Static sub title, rather than a Random sub title...So what I want to happen is for the text box to be disabled if the drop down menu is selected as Random... and then enabled if the drop down is selected as Static...So I came across the following script on an old post as mentioned earlier:
<script type = "text/javascript"> function enableTextbox() { if (document.getElementById("dropdown").value == "New") {
I have two select lists and depending on the value selected in the first select dropdown, I want to populate the second list.
I tired a couple of different ways, but for some reason, it works fine on IE but not on Firefox. On Firefox the second dropdown list doesnt get populated.
Any pointers on how to populate the second dropdown..
Heres the code:-
for(var j=0;j<array.length;j++) { this.document.getElementById("secondSelectName").options[j] = new Option("txt", "val"); }
I found a web page with 2 selection lists in a form. The contents of the second selection list are updated based on the entry in the first selection list. For example:
if the first selection list has all the states in the USA, the second list will display all the major cities in the selected state.
Ok, if you create multi-column lists with CSS, you tend to get: Code: 1 2 3 4 5 6 rather than:
Code: 1 4 2 5 3 6 One solution for this is here. However, that requires unique names for each list item and formatting the CSS in advance for each list in advance. LAME.
However, that solution can be automated with Javascript and I am almost positive I have seen that done before, I just can't find it now. Can anyone help me out?
Is this possible? Using the scriptaculous library I'm trying to replicate the structure of my sites main navigation menu which has sections and sub sections - I've not seen any example implementations of this, just one list or two separate lists, never lists within lists.
I have to create a page having drop down lists in such senario:-My page shows a drop down to select "country" . After selecting country from it , the page shows another drop down to select "state" (here state are only of that particular country).After selecting state, the page shows another drop down to select "District".
Am having difficulty creating a dynamic <select> element using direct assignment to the element's option array (ie. someElement.option[i]=new Option(someText, someValue);) that will work on Palm devices runing Blazer 3.0 or Web Browser 2.0.
The browsers SEEM to be JavaScript1.1+ capable and the script that I have works on every desktop-based browser, but not the PDA ones....
I need to toggle my lists independently within my <sidebar> div. As current, it will minimize or maximize them all upon click. My aim is for them all minimized to begin with, and upon individual selection, i wish them to maximize. Heres what i currently have:
I want fill a select list with the first list on page load, then depending on which option is chosen, fill another select list with the appropriate list. I'd prefer using only javascript!
I have two dropdown lists, and I want to have each option from the first dropdown list to give the specific options on the second dropdown list. For instance,