function UsernamePasswordBox() {
var value = document.getElementById(‘login_as_guest’).checked;
if (value == true){
document.getElementById(‘login’).disabled=true;
document.getElementById(‘pass’).disabled=true;
}
else{
document.getElementById(‘login’).disabled=false;
document.getElementById(‘pass’).disabled=false;
}
}
In Body:
Login:
<input class=”text” name=”login” id=”login” value=”" type=”text” title=”">
Password:
<input class=”password” name=”pass” id=”pass” value=”" type=”password” title=”">
Login as a guest: <input name=”login_as_guest” id=”login_as_guest” type=”checkbox” title=”" onclick=”UsernamePasswordBox()”>
20 December, 2007 at 12:02 pm
I would like to see a continuation of the topic
6 May, 2008 at 5:06 pm
This helped a lot!! Thanks