What is the difference between this:
$.each($(\'#myTable input[name=\"deleteItem[]\"]:checked\').do_something());
and this:
Taken from http://api.jquery.com/jQuery.each/
The
$.each()function is not the same as.each(), which is used to iterate, exclusively, over a jQuery object. The$.each()function can be used to iterate over any collection, whether it is a map (JavaScript object) or an array. In the case of an array, the callback is passed an array index and a corresponding array value each time. (The value can also be accessed through the this keyword, but Javascript will always wrap the this value as an Object even if it is a simple string or number value.) The method returns its first argument, the object that was iterated.