Guest dinosaur Posted May 26, 2006 Share Posted May 26, 2006 Hi, hope someone can help me. Have created a drop down list, but when selected I would like checkboxes relevant to the choice to come up below. Any ideas? Your help would be much appreciated. Cheers x Link to comment Share on other sites More sharing options...
real_illusions Posted May 26, 2006 Share Posted May 26, 2006 i think this would require javascript.i dont think server side scripting would do this, as its based on what the user does...unless you want to refresh the page by submitting it.have a google search, see what you can come up with. theres bound to be something thats similiar to what you need. Then we can help in modifying it for your needs. Link to comment Share on other sites More sharing options...
whitedark554 Posted May 26, 2006 Share Posted May 26, 2006 You definantly need a javascript for that Link to comment Share on other sites More sharing options...
gus Posted May 29, 2006 Share Posted May 29, 2006 ya you need javascript. Link to comment Share on other sites More sharing options...
scott100 Posted May 30, 2006 Share Posted May 30, 2006 Does it realy take 3 people to tell someone they need javascript Ok i'll be 4th, you need javascript Here it is: <head><script>function check(val){for (i=0;i<=3;i++)document.getElementById('div'+i).style.display="none";document.getElementById('div'+val).style.display="block";}</script></head><body><html><body><form><select name="menu" onchange="check(this.selectedIndex)"><option value="volvo">Volvo<option value="saab">Saab<option value="fiat">Fiat<option value="audi">Audi</select></form><div id="div0" style="display:none">Volvo<input type="checkbox" /></div><div id="div1" style="display:none">Saab<input type="checkbox" /></div><div id="div2" style="display:none">Fiat<input type="checkbox" /></div><div id="div3" style="display:none">Audi<input type="checkbox" /></div></body></html></body> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now