I have an input that is hidden and I don't want it to be shown in inspect element. Is there any possible way to do that?
Asked
Active
Viewed 436 times
-3
-
1Does this answer your question? [How to hide form code from view code/inspect element browser?](https://stackoverflow.com/questions/24319786/how-to-hide-form-code-from-view-code-inspect-element-browser) – drinos Jan 08 '22 at 12:58
-
This feels like an XY problem. Why do you find the need to hide an element from the inspector? Also, everything that you send to the client will be accessible by the client. – Terry Jan 08 '22 at 13:33
1 Answers
2
No, there is not. Any HTML element will be accessible through the HTML source, even if generated dynamically through javascript.
If you are trying to secure some information which the client should not have access to, do not send it to the client.

HaroldH
- 533
- 1
- 4
- 10