I have an input for which I set the value after an AJAX request, but when I submit the form the value of this input is empty
Here's my input :
<input type="hidden" value="" name="NbEmprunteurs" id="NbEmprunteurs"/>
and here's how I set in the callback function :
$('#NbEmprunteurs').attr('value',data.nbEmprunteurs);
on submit i get all the other inputs but this one, any idea why ?