[Jquery] To check if checkbox is checked

Simple code to know if checkbox is checked

if( $('#CHECKBOX-ID').is(':checked') ){
      // checkbox is checked
}else{
     // checkbos is not checked
}

留言

這個網誌中的熱門文章

How to PHP export to Excel 2

html viewport meta