jquery toggle() not working properly

jquery toggle() not working properly

hi,

i have a div on which i am calling toggle() to show it on  a button click event..  initially the div css is set as         display:none; 

now when i click the button first time, the div shows up, but when i click the button again, it hides some one second and again comes back.  i tried slideToggle also, but same result.


i dont know if its a bug or something is wrong in my code.  i tried to experiment with duration of my click.

when i use double click, the div will show up once again but it will hide eventually.

please tell me a way to fix this  problem..