I use the code below to add required attribute to the inputs in a form and its working perfectly but want to remove required attribute for only the input type:URL in the form.
$('#private-acc').click(function(){
$('#private-office').css('display', 'block');
$('#private-office :input').prop('required', true);
$('#public-office').css('display', 'none');
$('#public-office :input').prop('required', false);
});
Please how do i do it, I don't have any idea at all.