Is it possible to us jQuery to select a collection of form elements based on their value and/or state?
For instance, I have some code that looks like
jQuery("input[type='checkbox']").each(function(element){
if(this.checked)
{
//do something with the checked checkeboxes
}
});
I'd like to remove the interior conditional, and somehow add it to the initial selection. Either as part of the selector string, or via some additional method call on the chain.