Jump to content
MakeWebGames

HTML Clear


Kieran-R

Recommended Posts

I have a small javascript aplication, using jQuery. However, im having a problem. Heres my code:

 

  function update() {

                   	$("#update").hide();
           	}

 

When I call this function with lets say : <div id="update">bla bla bla</div>, then it will clear no problem.

But what Im trying to do is clear a much larger piece of HTML. It has 2 tables, and some PHP during it. Ive surrounded all of the part of which I want to disapear with <div id="update">....</div>, yet when the function is called, none of the information in those tags are disapering.

If somoene could help me, then that would be wonderful!

 

Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...