javascript - google chrome DOM manipulation -


i use

<a class="waves-effect waves-light btn disabled">submit</a> 

to prevent users submitting form if not input according validation rules.

however, when inspect element through google chrome , remove disabled class source.

boom, button turns active button.

so wondering how prevent this?

thanks.

there no disabled attribute tag. if want disable hyperlink change js e.g span tag. here have more solutions

disabled href tag


Comments

Popular posts from this blog

java - JavaScript + Thymeleaf - select onchange -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

node.js - Using Node without global install -