Anthony Rappa

Stuff I learned along the way

Category: Javascript

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

Extracting query string components with Javascript

Most of the time, you will use PHP to grab query string components off of your URI using $_GET, but…

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…

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