Here is my html input elements
<input type="text" name="pname[]" value="" />
<input type="text" name="pname[]" value="" />
<input type="text" name="pname[]" value="" />
<input type="text" name="pname[]" value="" />
<input type="text" name="pname[]" value="" />
<input type="text" name="pname[]" value="" />
How can I get all the values of pname
array using Jquery
By Using map
var values = $("input[name='pname[]']")
.map(function(){return $(this).val();}).get();