I have a collection of input check boxes which look like the following:
<input name="1" title="" id="3.6.1AudultSupportNoCheckBox"
style="position: absolute; top: 333px; left: 760px; tabindex: 11; z-order: 99;"
type="checkbox" CHECKED="checked" runat="server" value="on"/>
What I'm trying to do is use Javascript to take the value found in tabindex
as assign it to the proper HTML attribute of TabIndex
I have the following Javascript trying to get the value within my CSS
var test = document.getElementsByTagName("input");
var style = window.getComputedStyle(test);
var value = style.getPropertyValue('tabindex');
console.log(value);
But when I run this in IE I get the following error:
Object doesn't support property or method 'getComputedStyle'
Can someone tell me what it is I'm doing wrong? Besides having TabIndex in my CSS which I already know is an issue.