can i select Elements of different classes at a time?
suppose if i have
<div id="divAdd">
<p style="font-size:16px; color:Blue; "></p>
<p class="test">
<input:textbox id="id1" type:"text" />
</p>
<p class="test">
<input id="txtMobile" type="text" style="width:120px;" name="txtMobile">
</p>
<p class="test">
<input id="txtMobile" type="text" style="width:120px;" name="txtMobile">
</p>
<p class="child">
<input id="txtMobile" type="text" style="width:120px;" name="txtMobile">
</p>
can i select all textboxes in two different classes in this way??
$('#divAdd .test input:text','#divAdd .child input:text').each(function () {
count++;
});
</div>