How can I conditionally set a required
attribute in an input ?
<input type="text" required />
The required attribute has not value. Just by being present will be taken as required
. So required="false"
will make some scripts fail.
I was not able to find anything like it in the docs. The closer I got was the disabled
binding.