var matcheduserID = $('.checkone')[1].matcheduserID;
<input type="checkbox" matcheduserID='user1' class="checkone" onclick="javascript:HoldItem('H')">
This code works in Internet Explorer, though in Firefox and Chrome I get it returns undefined.
I think you are trying to access the wrong element in the first place..
Are you trying to access the
First element or the second element..The NodeList is 0 index based.
If it’s the first element you are trying to access then use
Try using the
.getAttribute()method.get(1) gets the second element with the given class..
Maybe you are encountering this issue because
matcheduserIDis not a default attribute for the elementjQuery