Where does the browser store user input data like the checkbox selection values, text in textboxes, etc?
For example, after entering some text in a textbox I checked using the inspect element in Chrome but the entered value is not seen there. It is also not in view source on the page. Is it in browser cache?
They are stored in the DOM. HTML is parsed and stored as data. This data is rendered into what we see in our browser. This data can be accessed and changed using Javascript as well as through interaction with the website (ie. checking boxes, entering text).
WHY YOU DON'T SEE THE CHANGES
HOW TO SEE CHANGES
Open up a console in your browser (most have one built in) and type
document.getElementById("id-of-input").value
you will see the value printed out.You should note that you use
value
andchecked
for checkboxes.