Linked Questions

0 votes
1 answer
84 views

Select array of html elements using JQuery [duplicate]

I have an array of elements in a table like this: <td><input type="number" min="0" name="value[]" value="22.00" class="form-control"></td> <td><input type="number" min="0"...
Mick's user avatar
  • 1,599
-1 votes
2 answers
79 views

get elements by array name JS, JQuery [duplicate]

I have this HTML <input type="text" name="object[A][Name]"> <input type="text" name="object[A][Description]"> <input type="text" name="object[B][Name]"> <input type="text" name="...
RCabral's user avatar
  • 33
0 votes
0 answers
27 views

Selector for HTML elements of an array [duplicate]

I have a array of input fields I need to select for a jQuery change event. <input id="LandDescriptionItems_0__Acres" name="LandDescriptionItems[0].Acres" ... <input id="...
rwkiii's user avatar
  • 5,866
130 votes
12 answers
187k views

Pass array to mvc Action via AJAX

I'm trying to pass an array (or IEnumerable) of ints from via AJAX to an MVC action and I need a little help. the javascript is $.get('/controller/MyAction', { vals: arrayOfValues }, function (...
Dave's user avatar
  • 2,562
199 votes
5 answers
118k views

jQuery selector for inputs with square brackets in the name attribute [duplicate]

I'm trying to select this element which has square brackets in the name attribute: <input type="text" name="inputName[]" value="someValue"> I've tried this (which doesn't work): $('input[...
aidan's user avatar
  • 9,594
26 votes
4 answers
42k views

Send list/array as parameter with jQuery getJson

I have the following where I'm trying to send list/array to MVC controller method: var id = []; var inStock = []; $table.find('tbody>tr').each(function() { id.push($(this).find('.id').text());...
fearofawhackplanet's user avatar
0 votes
4 answers
5k views

Getting value of text field with array type name using jQuery

I have an input text field like below <input type="checkbox" value="9961103777" name="mobile[]"> I just want to get the value using jquery. I tried this but not working: jQuery('input[name=...
akhil n l's user avatar
  • 181
1 vote
3 answers
1k views

How to submit array data to bootstrap/zurb foundation modal

How to submit array data to bootstrap/zurb foundation modal, This is my Form to submit data: <form method="post" action=""> <p> <label>Name 1: </label> ...
Khoerodin's user avatar
  • 131
1 vote
1 answer
1k views

Add a number of input fields based on a dynamic value in PHP

Good morning. I am creating a 2 stage form in WordPress sending using ajax and wp_mail. The purpose is to allow the user to fill in basic information about a visit to a golf course and then click ...
Alex Knopp's user avatar
0 votes
2 answers
871 views

Store Array Input Form to Javascript

I have a HTML form like this: <div class="form-group"> <label for="first_name">1st Name</label> <input type="text" id="first_name" placeholder="First Name" class="form-...
Raissa Ditya Putri's user avatar
0 votes
2 answers
390 views

Calculate multiple rows of jquery dynamic form

I have tried to find out the summation of multiple rows of jquery forms. But could not. Input : <input type="text" name="item_quantity[]" class="form-control item_quantity" " /> Jquery $('...
rashedcs's user avatar
  • 3,753
0 votes
3 answers
260 views

Javascript does not recognize HTML arrays

How to pass this kind of HTML input to JavaScript so that it recognizes these array values? <input type="checkbox" id="collection[]" value="0"> <input type="checkbox" id="collection[]" value=...
Sates's user avatar
  • 408