Hi,
How can I set the boolean attribute “required” for use with html//1?
<input class='form-control'
id='code'
type='number'
required>
Hi,
How can I set the boolean attribute “required” for use with html//1?
<input class='form-control'
id='code'
type='number'
required>
Syntactically it’s a as simple as it could be, I think. Just
...
div(['with a check', input([type=checkbox,checked])]),
...
produces a checked check box.
Semantically, it’s another story. Reacting to ‘required’ means different actions in different parts of code. Are you going to handle it client side or server side ? What your ‘theme’ says ? Mostly depends on this.
Hi Carlo,
Thanks for your reply.