DarkPrince2005 Posted March 24, 2008 Share Posted March 24, 2008 Can anyone tell me, why the drop down box stays the same, even when i try and change it. <html> <head> <title></title> <style> td{background-repeat: no-repeat; } a{color:"#3C00FF"; } </style> <script language="JavaScript" type="text/JavaScript"> <!--//hide script function checkme() { if (document.form1.domain.selectedIndex = 1 ) { document.form1.current_host.disabled=false; }else{ document.form1.current_host.disabled=true; } } // ---> </script> </head> <body topmargin="0" bottommargin="0" rightmargin="0" leftmargin="0"> <center> <table width="675"> <tr> <td valign="top" align="center"> <form name="form1"> <table width="650"> <tr> <td valign="top"><font color="#FF6600">Domain Options</b></td> <td> </td> <td><select name="domain" onchange="checkme();"><option></option> <option>Please arange the transfer for me</option> <option>I will arange the transfer myself</option></select> </td> </tr> </table> </td> </tr> Quote Link to comment Share on other sites More sharing options...
haku Posted March 25, 2008 Share Posted March 25, 2008 Not without a better explanation. Come on man, if you want help, then spend the time to explain your problem accurately and in detail. Quote Link to comment Share on other sites More sharing options...
DarkPrince2005 Posted March 25, 2008 Author Share Posted March 25, 2008 ok when the selected index in the drop down box is 1 then a textbox called current_user should be enabled, which it is doing, but as soon as i want to change the index to 2 it just jumps back to1 Quote Link to comment Share on other sites More sharing options...
haku Posted March 25, 2008 Share Posted March 25, 2008 What jumps back to one? The menu? And what do you want to happen when you choose 2? Quote Link to comment Share on other sites More sharing options...
zenag Posted March 25, 2008 Share Posted March 25, 2008 change the script like this.... function checkme() { if (document.form1.domain.selectedIndex ==1 ) { document.form1.current_host.disabled=false; } else if(document.form1.domain.selectedIndex == 2 ){ document.form1.current_host.disabled=true; } } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.