Jump to content
MakeWebGames

Recommended Posts

Posted

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

Posted

I'm using it like this: <a href="#" onClick="javascript: update(');">

I'll give yours a try danny. But what I don't understand is why would it work for small parts of text, but not a much larger HTML area.

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...