Thank you, Karl. This code now works well:
$(document).ready(function() {
$("#sendmail").click( function() {
validate();
return false;
});
});
function validate() {
if ( document.tester.mytext.value == "" ) {
alert ('Your have not provided a mytext');
} else {
document.op.value = "Send";
document.tester.submit();
}
}
Now the form works nicely with or without javascript.
--
View this message in context:
http://www.nabble.com/Simple-form-setup-tf2187171.html#a6072652
Sent from the JQuery forum at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/