I have the following Javascript that checks if a field is empty.
function checkForm(form) {
if(this.firstname.value == "") {
alert("Please enter your First Name in the form");
this.firstname.focus();
return false;
}
}
How would I rewrite this using jQuery?