javascript - Closing the dropdown button programmatically -
i using zurb-foundation dropdown button - http://foundation.zurb.com/sites/docs/v/5.5.3/components/dropdown_buttons.html
but have additional requirement close dropdown list when user clicks outside dropdown button or when user clicks on item in dropdown list, need way programmatically close open dropdown list on on-click event.
what's javascript call need make programmatically close open dropdown list?
after searching here cleaner way of doing it:
foundation.libs.dropdown.close($('#id_of_dropdown_list'));
Comments
Post a Comment