>Which of these would be faster?
>
>$("#myForm").each(function(frmI,frm){
>       $("input.classA",frm)...
>       $("input.classB",frm)...
>       $("#inputC",frm)...
>});
>
>or
>
>$("#myForm input.classA")...
>$("#myForm input.classB")...
>$("#inputC")...

The 2nd set definitely does a lot less processing.

-Dan

Reply via email to