Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

required false jquery

if(val == 'other')
{
  $('#amount1').show().prop('required','true');
}
else
{
  $('#amount1').hide().removeAttr('required');   
}
 
PREVIOUS NEXT
Tagged: #required #false #jquery
ADD COMMENT
Topic
Name
2+4 =