Answers for "required true jquery"

1

change input to required jquery

$('#input').prop('required',true);
Posted by: Guest on December-19-2020
0

required false jquery

if(val == 'other')
{
  $('#amount1').show().prop('required','true');
}
else
{
  $('#amount1').hide().removeAttr('required');   
}
Posted by: Guest on January-08-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language