thanks lanxiazhi., It works On Wed, Aug 26, 2009 at 11:24 PM, lanxiazhi <lanxia...@gmail.com> wrote:
> var values=$('input[name="location[]"]').map(function() > { > return $(this).val() > } > ).get(); > this will return an array of values. > 2009/8/27 Rupak <rupakn...@gmail.com> > > >> Hi all. >> >> I have n number of text box (n may be any number) with same name. And >> I want to access the value of all the text box of that name. >> >> Ex-: >> >> <input type="text" name="location[]" /> >> <input type="text" name="location[]" /> >> <input type="text" name="location[]" /> >> >> >> or is there any other way to access the value of the text box. Either >> by class or any othe property >> >> >> Thanks >> Rupak > > >