nasi Posted March 28, 2011 Share Posted March 28, 2011 HiI need to have a drop-down list with a preselected value in a popup box generated by a javascript. can you please let me know how to do it? I know alert box, confirm box and prompt box but I don't know drop-down list.Thanks Link to comment Share on other sites More sharing options...
thescientist Posted March 28, 2011 Share Posted March 28, 2011 first step would be to learn how dropdowns are created, using the <select> and <option> tags.http://www.w3schools.com/html/html_forms.aspthat should also cover how to have one preselected, and the w3schools' DOM reference will give you insight on how to set that property with javascript. Link to comment Share on other sites More sharing options...
nasi Posted April 14, 2011 Author Share Posted April 14, 2011 first step would be to learn how dropdowns are created, using the <select> and <option> tags.http://www.w3schools.com/html/html_forms.aspthat should also cover how to have one preselected, and the w3schools' DOM reference will give you insight on how to set that property with javascript.thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.