Or better yet, simply $('#left :text')
see the pseudo-selectors available at http://docs.jquery.com/Selectors under "Forms". - ricardo On Jan 9, 12:09 pm, "Chandan Luthra" <chandan.lut...@gmail.com> wrote: > Sorry I left out the div ,,, > > //for all text boxes in div > $('#left input[type="text"]') > > //for only immediate child text-boxes in div > $('#left>input[type="text"]') > > With Regards, > Chandan Luthra > Intelligrape Software Pvt. Ltd. > > On Fri, Jan 9, 2009 at 7:36 PM, Chandan Luthra > <chandan.lut...@gmail.com>wrote: > > > $('input[type="text"]') > > > With Regards, > > Chandan Luthra > > Intelligrape Software Pvt. Ltd. > > > On Fri, Jan 9, 2009 at 7:15 PM, Oltmans <rolf.oltm...@gmail.com> wrote: > > >> Hello all, > > >> I've a DIV that looks like > > >> <div id="left"> > > >> </div> > >> and this DIV contains text-boxes, check-boxes and drop-downs. Say, > >> I've to retrieve only text-boxes from this DIV--what is the best > >> possible way to do that? Any help will be highly appreciated. > > >> Thanks, > >> Oltmans