iAlex
Junior Member
Posts: 73
|
Post by iAlex on Dec 20, 2007 21:03:27 GMT -5
When logging in, this code will automatically make the 'Forever' option selected.
Main Footer.
Cross Browser.
Open Source.
<script type="text/javascript"> <!--
if(document.loginform){ var iGotSelect=document.loginform.minutes iGotSelect.selectedIndex=9; }
//--> </script>
|
|
|
Post by Tobias on Dec 23, 2007 12:31:09 GMT -5
Erm. Is it just me or could you have done that with one line?
if(document.loginform) document.loginform.minutes.selectedIndex=9;
|
|
Kahless
Administrator
Guitar Star
Posts: 1,045
|
Post by Kahless on Dec 23, 2007 13:50:34 GMT -5
No toby, your not the only one who knows brackets arent needed for one liners. does it matter?
|
|
Blink
Addicted Member
Posts: 1,699
|
Post by Blink on Jan 3, 2008 13:34:36 GMT -5
But which looks neater?
|
|