How remove required attribute from input ?

The recommended method of customizing your AppGini-generated application is through hooks. But sometimes you might need to add functionality not accessible through hooks. You can discuss this here.
Post Reply
xbox2007
Veteran Member
Posts: 136
Joined: 2016-12-16 16:49

How remove required attribute from input ?

Post by xbox2007 » 2024-01-26 19:55

hello
in my project i have two input , ( driver , Customer).

i can hide customer if i choice driver .
also i hide driver if i choice customer .

the problem i should make (deiver or customer ) input as required input.

i try use many code to remove required , but all not working

Code: Select all

$j('#driver').removeAttr('required')

document.getElementById("driver").removeAttribute("required");

 $j('#driver').prop('required',false);
 
if any one have idea how to remove required from (driver) input

Post Reply