SyntaxFix
Write A Post
Hire A Developer
Questions
Use this function:
function is_checkbox(selector) { var $result = $(selector); return $result[0] && $result[0].type === 'checkbox'; };
Or this jquery plugin:
$.fn.is_checkbox = function () { return this.is(':checkbox'); };