First of all, my English is very bad, sorry for that. I don't know much javascript and I would like your help.
there is one div
<div id="click"></div>
when clicking on this div
if (...click){
var a = "click open";
}else{
var a = "";
}
I need a coding like this. When clicked, the variable a should be filled and empty when not clicked. how do i do this please help all i want is when it is clicked the variable a will be full when not clicked it will still work but it will be empty
if (...click){
var a = "click open";
}else{
var a = "";
}
all i want is when it is clicked the variable a will be full when not clicked it will still work but it will be empty