Hi I want the use to be able to click the button once to show a subfield and click again to hide it
I have the code on the click event and the click to show step works but the second click to hide does nothing
my code is :
if(help1vidlist.presence = "hidden") {
help1vidlist.presence = "visible";
} else if (help1vidlist.presence = "visible"){
help1vidlist.presence = "hidden";
}
any ideas?
thank you
Solved! Go to Solution.
Views
Replies
Total Likes
I think you need to use the "==" operator in the conditions, that is;
if(help1vidlist.presence == "hidden") {
help1vidlist.presence = "visible";
} else if (help1vidlist.presence == "visible"){
help1vidlist.presence = "hidden";
}
Regards
Bruce
Views
Replies
Total Likes
I think you need to use the "==" operator in the conditions, that is;
if(help1vidlist.presence == "hidden") {
help1vidlist.presence = "visible";
} else if (help1vidlist.presence == "visible"){
help1vidlist.presence = "hidden";
}
Regards
Bruce
Views
Replies
Total Likes
Thanks Bruce,
perfect.......
i always make a mess of the "=" and "=="
much appreciated
Views
Replies
Total Likes
Views
Likes
Replies