I am currently using a catch all method for all inputs on my form when it is being handled by jQuery.
$.each($(':input'),function()
{
//stuff
});
What I need to be able to do is see if any of those inputs is a checkbox, at the moment the only thing I can find is to say if the field is checked or not.
Any help would be greatly appreciated.
:inputMatches all input, textarea, select and button elements. obviously, select are not needed in here.inputwould be more correct in this case. reason b: the select all and then filter approach (input -> each -> if type == checkbox ) will cause unnecessary iterations, whileinput[type=checkbox]will filter them before the.eachiteration comes into the picture.