For a text input defined as:
<input type="text" name="Email0" id="Email0" value="1st Email" /><br />
If the user changes the value of that text box I simply pass it along with the form submit…if they _haven’t changed it – i need to pass a value of ‘null’.
$('#frmSignup').submit(function () {
if (Email0.value != Email0.defaultValue) {
alert("hit here"); //not hitting here
}
});
You’ll note that jQuery exists but i’m unclear as to exactly how to retrieve a input’s defaultValue to jQuery.
thx
You can reference the underlying DOM element from a jQuery object using array syntax…