locked
how to check all checkboxes inside table by button click RRS feed

  • Question

  • User-1634604574 posted

    i have this table i want by button click check all checkboxes checked 

    <table id="t">
    <tr>
    <td><input type="checkbox"></td>
    <td><input type="checkbox"></td>
    <td><input type="checkbox"></td>
    </tr>
    
    <tr>
    <td><input type="checkbox"></td>
    <td><input type="checkbox"></td>
    <td><input type="checkbox"></td>
    </tr>
    
    <tr>
    <td><input type="checkbox"></td>
    <td><input type="checkbox"></td>
    <td><input type="checkbox"></td>
    </tr>
    
    <tr>
    <td><input type="checkbox"></td>
    <td><input type="checkbox"></td>
    <td><input type="checkbox"></td>
    </tr>
    
    <tr>
    <td><input type="checkbox"></td>
    <td><input type="checkbox"></td>
    <td><input type="checkbox"></td>
    </tr>
    
    </table>
    

    Saturday, May 4, 2019 12:48 AM

Answers