i have a form with 2 fields which is having jquery token based input, they can have single or multiple value, what is the way to capture the data from both input fields(which contains multiple values), which i should be able to distinguish based on the input field id. i intend to process this data in php script, so is it possible to get the input directly in ($_POST)
<div>
<h2>Include</h2>
<input type="text" id="include" name="include" />
<h2>Must Have</h2>
<input type="text" id="must_have" name="must_have" />
<input type="button" value="Submit" />
</div>
jquery script to view the data when u hit the submit button. (it is currently showing me the data of include field only (example:- k1,k2,k3)) but it is not showing me for must_have field.
$(document).ready(function() {
$("input[type=button]").click(function () {
alert("Would submit: " + $(this).siblings("input[type=text]").val());
});
});
i am new to jquery, so i dont know exaclty how to process this. please help.
<?php var_export($_POST); ?>in your php script and you will see all data posted :)