Skip to main content
added clarity
Source Link

This also works. When I did just a remove the option remained in the ddl on the view, but was gone in the html. (if u inspect the page)

$("#ddlSelectList option[value='2']").remove(); //removes the option with value = 2 $('#ddlSelectList').val('').trigger('chosen:updated'); //refreshes the drop down list 

This also works. When I did just a remove the option remained in the ddl on the view, but was gone in the html.

$("#ddlSelectList option[value='2']").remove(); //removes the option with value = 2 $('#ddlSelectList').val('').trigger('chosen:updated'); //refreshes the drop down list 

When I did just a remove the option remained in the ddl on the view, but was gone in the html (if u inspect the page)

$("#ddlSelectList option[value='2']").remove(); //removes the option with value = 2 $('#ddlSelectList').val('').trigger('chosen:updated'); //refreshes the drop down list 
Source Link

This also works. When I did just a remove the option remained in the ddl on the view, but was gone in the html.

$("#ddlSelectList option[value='2']").remove(); //removes the option with value = 2 $('#ddlSelectList').val('').trigger('chosen:updated'); //refreshes the drop down list