tooltip - javascript hide dropdown when click anywhere -


hello want hide droppdown tool tip when click on out side div, below code

// tooltip function  function ddtooltip(){    document.getelementbyid("ddtooltip").style.visibility='visible';  };  function removetooltip(){    document.getelementbyid("cancel").style.visibility='hide';      } 

do this:

document.getelementbyid("cancel").style.visibility='hidden';  

instead of:

document.getelementbyid("cancel").style.visibility='hide'; 

you can refer css visibility documentation


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -