Please let me know how can I remove/clear all options from msDropDown. I have tried the below code and its not working fine.
oHandler2 = $("#main").msDropDown().data("dd");
oHandler2.remove();
Thanks in Advance. Lampy
Please let me know how can I remove/clear all options from msDropDown. I have tried the below code and its not working fine.
oHandler2 = $("#main").msDropDown().data("dd");
oHandler2.remove();
Thanks in Advance. Lampy
You need to specify an index when calling the
.remove()method and you can get the count of all options by accessing thechildElementCountproperty. Then you just need to remove all the options. Example below: