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
I'm working on a form that allows to edit a product and its variations. My (single) Selectators are therefore filled with data proceeding from the DB, retrieving the previously both selected and unselected options.
On click on a "Clear data" button, (I have several ones along my form), I'm trying to either :
change the content of a selected item (value, data-left, text...)
or
append a new empty option as selected, with value, data-left & text =""
or
trigger click on Selectator close button.
// $("#variation_1 .selectator_selected_item_remove").trigger('click'); doesn't work. How do I target it ?
None of these solutions work, and it's a little brainstorming as it reads divs instead of options in the console.
Anticipate thanks & regards :)
The text was updated successfully, but these errors were encountered:
I don't really understand what you are trying to do, but I've updated the code and demo and readme; fixing 1 bug, and adding two new methods which might help you.
Hi,
I'm working on a form that allows to edit a product and its variations. My (single) Selectators are therefore filled with data proceeding from the DB, retrieving the previously both selected and unselected options.
On click on a "Clear data" button, (I have several ones along my form), I'm trying to either :
or
or
// $("#variation_1 .selectator_selected_item_remove").trigger('click'); doesn't work. How do I target it ?
None of these solutions work, and it's a little brainstorming as it reads divs instead of options in the console.
Anticipate thanks & regards :)
The text was updated successfully, but these errors were encountered: