It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum Script-archive

JavaScript hide and remove elements

JavaScript hide and remove elements

Postby HotNoob on Mon Sep 27, 2010 8:38 pm

This is just a simple, but usefull function
Code: Select all
function removeElement(value, id)
   {
      if(value == 1)
         {
            document.getElementById(id).style.display="";
         }
      else if(value == 0)
         {
            document.getElementById(id).style.display="none";
         }
     }
HotNoob
100+ Club
 
Posts: 169
Joined: Sun May 02, 2010 1:38 am

Who is online

Users browsing this forum: No registered users and 0 guests