I want to loop through all my input elements and select elements in one loop but this doesn't work.
$('#blockProperties :input :select').each(function () {
// do something
});
When I only loop through one of the two it does work.
The manual says :input "selects all input, textarea, select and button elements." So just do:
$('#blockProperties :input').each(function () {
...
:selectdoesn't work, by changing it toselectit worked both in my way as Box9's and michelgotta's way. Thanks:inputwill give you allformelements like radiobuttons, checkboxes, textareas, inputs. There is no:selectselector in jQuery.