You are here: HomeForums » Javascript » Javascript show/hide element function

Javascript show/hide element function (1 post)

in Forums » Javascript
  • Started 1 month ago by ioana

ioana (Administrator)

This very handy function can be used with the onclick attribute to show or hide an HTML element:

function show_hide(object)
{
object.style.display = element.style.display == "none" ? "block" : "none";
}
Posted 1 month ago #

Reply

You must log in to post.