showing results for - "jquery get multiple input values by name"
Soline
25 Jan 2018
1<input name="titles[]">
2<input name="titles[]">
3<button>submit</button>
4
5// click handler
6function onClick(event) {
7  var titles = $('input[name^=titles]').map(function(idx, elem) {
8    return $(elem).val();
9  }).get();
10
11  console.log(titles);
12  event.preventDefault();
13}
14
15// attach button click listener on dom ready
16$(function() {
17  $('button').click(onClick);
18});
19
queries leading to this page
jquery get multiple file input valuesjquery input name selector multiple valuesjquery get multiple fields by namesjquery multiple input same name different valuesget value of multiple input jqueryget all multiple input values jqueryjquery multiple values inputjquery multiple inputjquery get multiple input values by namejquery input value multiplejquery multiple input fields with same namemultiple input jqueryget multiple input by name javascript jquerymultiple input field in html using jquerymultiple the input value in jqueryjquery get multiple input values by classjquery get multiple input with idget multiple input field value in jqueryhow to get multiple input box value in jqueryget multiple input by name javascript jqueryget value from an input and display in another input jquery for multiple inputsjquery input field multiple valuesselect input with multiple values jquerycalculate multiple input value jqueryjquery multiple input valie getjquery get value of multiple input with same idjquery multiple input valueselect multiple inputs in jquerymultiple value input field with jqueryjquery select all inputs with value 3e 2html multiple values input with jquerget multiple input value in jqueryjquery total input multiple valuesinput type number get value jquery and multiple with prizejquery get value of multiple input with same namejquery multi input how to get multi id input in jqueryhow to get multiple input field value with same name in jqueryhow to get multiple input value in array in jqueryhow to get all values in multiple name jqueryjquery get multiple input values by name