Skip to content

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

@cliftonlueilwitz

Description

@cliftonlueilwitz

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions