I have an issue in ie7 that i can't seem to debug and was wondering if anybody can lend a hand. Go to http://beta.ourjoules.com/ in anything but IE and click inside of the login inputs. The text should clear for the email and it should clear and change to password for the password field. In IE 7 it doesnt change it to password nor does it clear it. Here is my code.
Code: Select all
//Clear's the input onfocus, and type to password where nessesary
function clear_input(element){
if(element.value == "Password"){
element.type = "password";
element.value = "";
}
element.value = "";
}
//Restores the default value for the elements
function restore_default(element){
if(element.value == ''){
element.value = element.name.substring(0, 1).toUpperCase()
+ element.name.substring(1, element.name.length);
element.type = "text";
}
}any suggestions are welcomed