Is there a way to change a value of a hidden field in the markup (with jquery or js) so I could use that new value once I'm out of the script (i.e. in a different script that would be triggered later)?
Lets say :
<form>
...
<input type="hidden" name="prev_address" id="prev_address" value="no">
<input type="hidden" name="prev_job" id="prev_job" value="non">
...
</form>
<script>
...
$('#prev_address').toggle( nbr_daysD < min_depuis_days );
document.form.prev_address.value = 'yes';
$('#prev_job').toggle( nbr_daysE < min_emploi_days );
// OR
$('#prev_job').value = 'yes';
...
</script>
The values are changing (if I use an alert) but not the markup...
Thanks