Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The remaining code is not executed if dropdown doesn't contain that value #404

Open
cliftonlueilwitz opened this issue Jul 18, 2023 · 0 comments

Comments

@cliftonlueilwitz
Copy link

cliftonlueilwitz commented Jul 18, 2023

The plugin is awesome I love it!

I am facing one issue where the remaining code does not get executed if dropdown doesn't contain that value.
For this consider I am setting the customer object food_item attribute to a value other than that is not present.

function updateFoodDetails(customer){
customer.food_item = plastic
$("#food_item").data("selectBox-selectBoxIt").selectOption(customer.food_item);
// execute remaining code like setting other form fields.....
}

the remaining code is not getting executed and it is exiting from that method from that point where selectOption method is executed. I am not sure how can I debug and resolve this. Can you please look into this and if possible provide a possible solution @gfranko ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant