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

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -