preline
preline copied to clipboard
Add and edit form with same select field id causing problem.
How to get const el = HSSelect.getInstance('#name'); in different form component with same id
How to get const el = HSSelect.getInstance('#name'); in different form component with same id
Hi!
Initialized elements are not saved in the application memory (store).
The getInstance('#id’) function returns instance from the collection on the current page. These elements are only available on the current page in the window object and not in any local store.