Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript check all checkboxes on page

(function() {
    var aa= document.getElementsByTagName("input");
    for (var i =0; i < aa.length; i++){
        if (aa[i].type == 'checkbox')
            aa[i].checked = true;
    }
 })()
Comment

javascript check all checkboxes in page

(function() {
    var aa= document.getElementsByTagName("input");
    for (var i =0; i < aa.length; i++){
        if (aa[i].type == 'checkbox')
            aa[i].checked = true;
    }
})()
Comment

PREVIOUS NEXT
Code Example
Javascript :: react router 404 redirect 
Javascript :: datatables hide showing entries 
Javascript :: SyntaxError: Cannot use import statement outside a module 
Javascript :: set cookie javascript 
Javascript :: divide array of objects to 4 arrays js 
Javascript :: how to convert time to am pm in javascript 
Javascript :: how to insert html in javascript 
Javascript :: higher order functions event 
Javascript :: stuck at "resolving packages" 
Javascript :: chrome inspector console tips 
Javascript :: javascript get time ago with moment 
Javascript :: scroll to bottom javascript 
Javascript :: javascript get random character from string 
Javascript :: detect browser 
Javascript :: jquery selected label option 
Javascript :: jquery trigger 
Javascript :: react native nested screens 
Javascript :: ascii to hex js 
Javascript :: Error: EACCES: permission denied, 
Javascript :: MongoParseError: option usecreateindex is not supported 
Javascript :: locate and delete an object in an array 
Javascript :: jq html remove disabled 
Javascript :: Add Tailwind CSS to Svelte 
Javascript :: angular how to check previous route 
Javascript :: react native text area align top 
Javascript :: javascript intellisense not working in vs code 
Javascript :: cors header missing vue api gateway 
Javascript :: cypress type force 
Javascript :: datatable columns with nullable fields ajax 
Javascript :: fibonacci recursion javascript 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =