Forum JavaScript enable inputs and add required attribute
hi
i have a select box that have two item (enable , disable) and three input
i want when the user select enable, each input be enabled and add Required Attribute to them.
enable
Required
And vice versa if select disable, each input be disabled and remove Required Attribute from them
disable
can you help me
Please sign in or create an account to participate in this conversation.
There's no shortage of content at Laracasts. In fact, you could watch nonstop for days upon days, and still not see everything!
Get Started
enable inputs and add required attribute
hi
i have a select box that have two item (enable , disable) and three input
i want when the user select
enable
, each input be enabled and addRequired
Attribute to them.And vice versa if select
disable
, each input be disabled and removeRequired
Attribute from themcan you help me