WP Login Form Code not getting validated, while adding a Checkbox
-
Hi All,
I’m trying to add a checkbox to the WP login form, where the user has to check the checkbox before logging in. I have some code i’ve been trying to implement, but for some reason the code is not getting executed, can someone tell me why the code below isn’t working? FYI, i have an ID name of “form1” on the form in the wp-login.php file:
$(‘#form1’).submit(function() {
if ($(‘input:checkbox’, this).is(‘:checked’)) {
// everything’s fine…
} else {
alert(‘Please select something!’);
return false;
}
});[Please don’t bump – it’s not permitted here.]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘WP Login Form Code not getting validated, while adding a Checkbox’ is closed to new replies.