I am having 100 Checkboxes on my web page. For testing purposes I want to tick all those boxes, but manually clicking is time consuming. Is there a possible way to get them tick
function selectAll(elem) { for (i = 0; i < elem.length; i++) elem[i].checked = true ; }
On Click of a button call this method and pass the name of the element(checkboxes-they all should be same named).