When an html page is loaded, different input elements can be initialed as they are declared in the HTML. If the user changes some of the input values and then executes a reset() on the form, then the form is reset to it's initial loaded state.
My question is, can I determine that "initial element state was" using javascript (ideally in a cross browser way?)
Ideally like this (where ???? is what I don't know how to do.)
<input type='checkbox' id='chkbox' checked />
<script>
alert('The initial state was ' ???? );
$('chkbox').checked = true
alert('The initial state was ' ???? );
</script>
This script would say the initial state was 'false' twice.