I need to run a code when i click on a text and i need the same text to disappear when i click on it. i know almost nothing about JS, is it possible doing that? ty.
<div id="mytext" style="display:;" onclick="this.style.display='none'">My Text</div> or to call external function <div id="mytext" style="display:;" onclick="HideMe()">My Text</div> <script language="javascript"> function HideMe() { document.getElementById("mytext").style.display = 'none'; } </script>