change hidden value jquery code example
Example 1: hidden jquery
$('#yourid').attr('hidden', false);
$('#yourid').attr('hidden', true);
Example 2: jquery set hidden field value
$("#texens").val("tinkumaster");
$('#yourid').attr('hidden', false);
$('#yourid').attr('hidden', true);
$("#texens").val("tinkumaster");