-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Programmatically Add Required Attribute #2132
Unanswered
dsw-solutions
asked this question in
Q&A
-
If I want to programmatically make a select box required the only way that seems to work is to destory and recreate it. Is there another option?
$('#projectIdentifierCode')[0].selectize.destroy()
$('#projectIdentifierCode').attr("required", true);
$('#projectIdentifierCode').selectize({ plugins: ["clear_button"], });
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment