You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 18, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 18, 2026. It is now read-only.
.disable() does not add a disabled attribute to the input element #307
The problem here is that because the input is not disabled, the browser will prevent the user to send the form. I don't think that it's the expected behavior. Can you please fix this?
Activity
MrTrick commentedon Aug 29, 2014
I agree that this is a problem.
<input type="text" required>the browser will not allow the form to submit when empty.<input type="text" required disabled>the browser will allow it.(The $control_input should be disabled or un-required when selectize.disable() is called)
brianreavis commentedon Jan 30, 2015
This is fixed by 1e391b1
MrTrick commentedon Jan 30, 2015
Hooray, thank you.
Ridwan247 commentedon Nov 10, 2021
$select_region = $('#form_region').selectize();
select_region = $select_region[0].selectize;
select_region.disable();
Thank you pym, it's work.