i need to check a checkbox in my webbrowser control the thing is this checkbox has no ID so i can't use the GetElementById() method
this is HTML code of the checkbox
<input type="checkbox" class="shoulduselikescheckbox" defaultchecked="true" >
i need to check a checkbox in my webbrowser control the thing is this checkbox has no ID so i can't use the GetElementById() method
this is HTML code of the checkbox
<input type="checkbox" class="shoulduselikescheckbox" defaultchecked="true" >
Well, in that case select element by it's class name
if you just using javascript then should work,
var cbArray = document.getElementsByClassName('shoulduselikescheckbox');
var cb= cbArray [0];