To Set All Checkboxes To True Using JavaScript

To Set All Checkboxes To True Using JavaScript


  • 6 Feb, 2012

    //select all input tagsfunction SelectAll() { var checkboxes = document.getElementsByTagName("input"); for(i=0;i<checkboxes.length;i++) { if(checkboxes.item(i).attributes["type"].value == "checkbox") { checkboxes.item(i).checked = true; } }}

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 downloadmela.com. All rights reserved.