10
rated 0 times
[
17]
[
7]
/ answers: 1 / hits: 43511
/ 12 Years ago, mon, december 17, 2012, 12:00:00
I need to get values of all textboxes with same name attributes using jquery.
<input type=text id=text1 name=text[]>
<input type=text id=text2 name=text[]>
<input type=text id=text3 name=text[]>
How can I get all values of textbox text[] and compare it using jquery.
I tried using
var values = $(input[name='text[]'])
.map(function(){return $(this).val();}).get();
but am no successful.
More From » jquery