Linked Questions
12 questions linked to/from Jquery get input array field
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"...
-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="...
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="...
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 (...
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[...
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());...
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=...
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>
...
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 ...
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-...
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
$('...
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=...