I am currently implementing this http://javascriptkit.com/script/script2/dropdownpanel.shtml into a new site im doing but am having a tiny niggle with it. the code will open a little dropdown div from the top of the page and works fantastically well but..... it closes on any click to the whole div.
I am looking to add a form into the dropdown but am unable to do so as any click within the area closes the dropdown.
Can anybody shed some light on how to stop this from happening and simply have it close when the button is clicked instead?
Question
karma
Hey all,
I am currently implementing this http://javascriptkit.com/script/script2/dropdownpanel.shtml into a new site im doing but am having a tiny niggle with it. the code will open a little dropdown div from the top of the page and works fantastically well but..... it closes on any click to the whole div.
I am looking to add a form into the dropdown but am unable to do so as any click within the area closes the dropdown.
Can anybody shed some light on how to stop this from happening and simply have it close when the button is clicked instead?
Thanks in advance
Link to comment
Share on other sites
11 answers to this question
Recommended Posts