Anthony Rappa

Stuff I learned along the way

Category: jQuery

Adding commas to numbers using jQuery

First define your function:

Then, call it on the object you want to modify:

1000000 becomes 1,000,000

Counting how many checkboxes in a group are selected using jQuery

If have a group of checkboxes and you need to see how many are selected, or if any are selected…

© 2019 Anthony Rappa. Theme by Anders Norén.