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

android - Inheriting from Theme.AppCompat* -

broadcastreceiver - android BOOT_COMPLETED not received if not activity intent-filter -

basic authentication with http post params android -