set required to false js jquery code example
Example 1: required false jquery
if(val == 'other')
{
$('#amount1').show().prop('required','true');
}
else
{
$('#amount1').hide().removeAttr('required');
}
Example 2: how to make required field in jquery false
making required false with js
$('#amount1').show().prop('required','true');