Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to disable input type=text in javascript so that it can't be changed even by inspection

It is possible to disable input element by adding disabled attribute. However this can be removed by devtools that come with browsers. Is there any other way to deal with this so that devtools can’t be used to enable it?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

No there is not. You should validate on the server side everything that comes from the client, because you can’t trust the client at all. It’s always possible to mess with the HTML/Javascript on the client side.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading