I have a <span> element that I am reading with JavaScript. The element is like the following one:
<span key="789">
<input id="ctl00_cphBody_gvContact_ctl09_cbox" type="checkbox" name="ctl00$cphBody$gvContact$ctl09$cbox">
</span>
I need to get the value for the "key" attribute. If I try to get the inner HTML of the HTML element, it returns the HTML of the inner checkbox.