[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
}

留言

這個網誌中的熱門文章

html viewport meta

Get latest google trends with php