Hi, can I set the type of a button to the reset type and viceversa?
I need to reset to blank a text field value, since the default value is not blank.
function clearDefaultValues(){
document.forms[0]['Clear '].type="button";
var field = document.getElementById('confirmPassword');
field.value = "";
}
This function is good for Mozilla, but in IE I've a jsError { Could not get the type property. This command is not supported.}
I need to reset to blank a text field value, since the default value is not blank.
function clearDefaultValues(){
document.forms[0]['Clear '].type="button";
var field = document.getElementById('confirmPassword');
field.value = "";
}
This function is good for Mozilla, but in IE I've a jsError { Could not get the type property. This command is not supported.}