jQuery.val("input[type=checkbox]"[,value])
is in line with the one for input text. $.valHooks.checkbox.get=function(a){return $(a).attr('checked')?'checked':''} $.valHooks.checkbox.set=function(a,b){$(a)[$(a).attr('checked')?'removeAttr':'attr']('checked','checked');}