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 - Null response to php query in android, even though php works properly -

node.js - Using Node without global install -

php - CakePHP HttpSockets send array of paramms -