Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

How to create an HTML script to select all check boxes on a webpage (THAT WORKS FOR QUICKBOOKS AND REGISTERS)

$
0
0

So I created the following script to select all check boxes on a page

(function(d) {  var input = d.querySelectorAll('input[type="checkbox"]');  var i = input.length;  while (i--) {    input[i].checked = true;  }})(this.document);

IT DOES WORK TO DO THAT, however when trying it in Quickbooks while it does select all the boxes, the website does not register it as actually being selected (the total cost at the bottom remains the same, its like it superficially checks the boxes, visually only with no actual register). Any help would be great.

EDIT: Maybe simulating a click instead of changing the box values?


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>