OZONE Asylum
Forums
DHTML/Javascript
changing selected index in dropdown
This page's ID:
31165
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
[code]<% String p = (request.getParameter("p")==null)?"":request.getParameter("p"); %> <html> <script type="text/javascript"> function init(){ var s=document.getElementById("select"); for(var i=0;i<s.options.length;i++){ if(s.options[i].value=="<%=p%>"){ s.options[i].selected=true; break; } } } </script> <body onload="init()"> <select id="select"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> </select> </body> </html> [/code]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »