Archive

Category Archives for "Snippets"

How to check if checkbox is checked

You can check a checkbox is checke or not by using the following code var checkedBx = jQuery(’.gift-messages input[name=allow_gift_messages]:checked’).length;   if(checkedBx > 0) { //Do something }var checkedBx = jQuery(‘.gift-messages input[name=allow_gift_messages]:checked’).length; if(checkedBx > 0) { //Do something }

Continue