HTML - Listbox Disabled Until Selection
Hi all,
I have a form in dreamweaver that consists of a couple of textboxes and two list boxes. I would like to make listbox2 disabled until either of the bottom two selections from listbox1 have been selected. Is that possible? Thanks very much, Dan Similar TutorialsHi All how can i insert a string with a superscript in to a list box. Please help me Regards Sree HI, I jus want to create a listbox with around 40 items in it, but I dont want all the items to be displayed at a time, hence I need to add a vertical scroll into it so that I can see only 10 items at a time. Please tell me how can I do such a listbox with scroll having a height to display 10 items only at a time. Thanks in advance. Regards, Prasad Hi, I have a form with html combo and input elements in a dialog with scrollbar. Problem I am facing is some of combo elements which are disabled disappear. When I scroll the disabled elements appear again. This happens only on IE. Works fine on firefox. Is there any issue with disabled elements as such. Thanks Hi I am looking at a frame site and the right frame is browsable but not saveable. How can I save the right hand frame? Right click is not allowed. Thanks Art Hi, I would like to know how to add/remove items from listbox PERMANENTLY. Sad to say, all I have found are adding/removing items temporarily. Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>Untitled Page</title> <script language="javascript" type="text/javascript" > function addOption(selectbox,text,value ) { var optn = document.createElement("OPTION"); optn.text = text; optn.value = value; selectbox.options.add(optn); } function addOption_list(selectbox) { addOption(document.drop_list.SubCat, "One","One"); addOption(document.drop_list.SubCat, "Two","Two"); addOption(document.drop_list.SubCat, "Three","Three"); addOption(document.drop_list.SubCat, "Four","Four"); addOption(document.drop_list.SubCat, "Five","Five"); addOption(document.drop_list.SubCat, "Six","Six"); } function removeOptions(selectbox) { var i; for(i=selectbox.options.length-1;i>=0;i--) { if(selectbox.options[i].selected) selectbox.remove(i); } } </script> </head> <body onload="addOption_list()";> <form name="drop_list" action="default.aspx" method="post" > <select id="SubCat" name="SubCat" MULTIPLE size="6" width="10"></select> <input type="button" onclick="removeOptions(SubCat)"; value='Remove Selected' /> <input type="button" onclick="addOption_list()"; value='Add All' /> </form> </body> </html> Please advise me on the problem. Hey! I'm developing a Windows Sidebar Gadget, which (as you may or may not know) runs on HTML, JavaScript, VBScript... etc. I have a problem. I have two Select objects (ListBox-es) which are supposed to be exactly the same. When some items are "transfered" from 1st to 2nd Select, they are being streched in height (please see: http://c404.net/stanthecaddy/attachments/SS.png). Here's how I'm adding items to 2nd Select (using JS): Code: // ... oFavoriteRestaurants.add(new Option(oRestaurants.options[n].text, oRestaurants.options[n].value), oFavoriteRestaurants.options[oFavoriteRestaurants.options.count]); // ... I hope i posted right. I don't know yet if this is HTML or JS problem Please reffer me to the right direction Thank you! How can i chnage the text color of the disabled field. Style attribute is not working hi. i have 5 radio buttons which disable when one on which is selected! but i cant post the value to the next page! how can i understand which on one is selected?! Thank you all Hello all I'm writing a mash up that has drag-able objects the problem is when I drag the object too fast my browser is selecting the text behind the object. So the screen behind the object keeps flashing blue. Is there a way to disable selection for a text block or change the color of what I select. Hey, I have a script at present which pre-loads 6 images and displays them on screen. I want a user to be able to select a checkbox next to the images so they can select which ones they want to use. On clicking continue the images selected are displayed on the next screen. Please can you help with coding for this as I am not getting very far. Thanks Hello, I am semi new to HTML and was wondering if there is an easy way to adjust a price.. once a user has selected something from a selection box.. so say they pick an item for 10$ the price field then increases 10$.. same for if they downgrade price decreases. any ideas. Hi, how can I put in a drop down menu that slides down or across from a regular text link in html? Then, when selecting one of the options, I would like it to automatically take the visitor to the page option selected? I don't want a drop down menu and then hit 'Go' type mechanism, just a slide and click type thing. i.e when the link is clicked on it would reveal a drop down list that says.. Hotel Car Rental Airport Car Park Insurance and would then link directly to the appropriate page. Thanks! Hi everyone, I have a page that displays 40 pictures (of paintings) with a short description of each. I am trying to think of a way to enable a user to add whichever paintings they want to a list. Basically, so they do not have to scroll through the whole page to view specific paintings. I thought about converting the page from XHTML to ASP.Net and then addign checkboxes under each picture. I thought about using C# to get a list of the checkboxes checked. How do I then display a new page (or somewhere on the same page) with only the selected graphics? Any ideas would be appreciated. I am a newbie at web programming. Thank you! Marc Hey im making a gaming gear review site and i want to add a Selection guide to help people choose the right gear for them. Link below is something what i am thinking about but using drop down lists instead. http://www2.razerzone.com/MouseGuide/configurator/ i know how to make a drop down lists but i don't know how to link the information together also how would i produce the final result. Any help would be appreciated. Hi.. I am having a html table with three columns and the rows are dynamic. I need to have a multiple selection of the rows and the value need to checked using javascript. I dont want any check box to be used... Can anyone help in getting this... Hello. I was wondering if it's at all possible to have a specific checkbox or radio button checked/selected when the user gets to that page depending on the link they clicked to get to that page. For example, I have a client who wants the user to go to a single form but from different categories (rather than having a form for each), but to make sure the recipient of the email knows which category it came from, the checkbox for that category would already be checked. The user would be able to check it themselves as well, but this ensures it's already selected and creates convenience for the user. Thanks I have a form that contains a drop down list; <select name="list" id="list" multiple="multiple"> When the user clicks the form's submit button I want to run a function that returns true if an <option> from that <select> object was selected and false if they forgot to make a selection. What is a simple way of doing this? I was thinking that maybe there was an object method like; if(document.form.select.optionSelected()==true) {do something; return true}; else {do something else; return false;} How can I select the correct field in my "Select form field", once I know the value from php/mysql? PHP Code: $_SESSION['job'] = "FX"; Now I want to update the form to display the selected value... HTML Code: <select multiple="true" name="field"> <option value="FL" selected="true">Flash</option> <option value="FX">Flex</option> <option value="AJ">Ajax</option> <option value="PH">Php</option> <option value="HT">Html</option> <option value="JV">Java</option> <option value="CC">C++</option> </select> SIGH I'm doing a website in which customers have to complete a form and accept contractual terms, but the client wants for them to have to click "I Accept" before the link to complete a product download can be activated and I haven't the foggiest how to do it. To which thing (I Accept or the Download link) do I apply the code and what code do I use? Can the download link act as both the Download and Submit button simultaneously? I proposed to the client that we just make the Accept button the Submit, and have the download link on the Thank You page following submission, but in the event that he doesn't go for that... THANKS! I've been laboring over this forever. Okay, I am not new to HTML but am expanding my knowledge out from the basics and learning more. I have been scouring the internet for about a week trying to figure out this problem but to no avail. I need to know how to take a drop down box and have the selection open in a new window with height=600 width=600, status bar, no scroll bars and no toolbars. I already have the dropdown box setup, just need to know how to accomplish that latter. Thanks for the help, dt_gry! |