Reputation: 3
I'm editing a script in a page with that code:
if(($email.val()).isEmail() == false){
$errorTip($email,"Imvalid email.");
$email.focus();
return false;
}
I'm trying to learn bypassing input restrictions on my localhost test site. I type an invalid format of an email address and I get an error, obviously.
I right clicked the page, "Inspect Element" then deleted the whole if statement. When I try again to submit the invalid email, it gives me the same error Seems like it does not take effect that way, any idea how to do that?
Thanks.
Upvotes: 0
Views: 58
Reputation: 478
If you edit JavaScript in element tab or sources tab of debugger tool it will not update the changes as like HTML change. JavaScript codes are executed when page is loaded.
To apply changes just paste the javaScript code in console tab and press enter, that will affect the change to your page.
Upvotes: 1