Trying to implement 'required' attribute on IE<11 and Safari.
Here is the script I am using to try to accomplish this, but it isn't working. Looking for feedback or a slap in the face if necessary. The form id = "sendit"
$("#sendit").submit(function() {
if (!attributeSupported("required") || ($.browser.safari)) {
$("#sendit [required]").each(function(index) {
if (!$(this).val()) {
alert("Please fill all required fields.");
return false;
}
});
}
});