I have a div being populated from PHP i’m trying to bind all the input boxes in a div to variables, (I do not wish to use serialize) how can I use Jquery to select each one and bind it to a variable such as
var location_id = $('#Wednesday').find('input').nth-child(0);
var static_id =$('#Wednesday').find('input').nth-child(1);
something of that nature thanks!
<div id='Wednesday' class='ui-widget-content ui-state-default' name='' value=''> ";
echo "<input name='".$day."_".$locationid."_locationID' value='".$locationid."' type='hidden'> ";
echo "<input name='".$day."_".$locationid."_static' value='".$static."' type='hidden'> ";
echo "<input name='".$day."_".$locationid."_primary' value='".$first_always."' type='hidden'> ";
echo "<input name='".$day."_".$locationid."_all_locations' value='".$all_locations."' type='hidden'> ";
</div>
1 Answer