Kieran-R Posted February 4, 2011 Posted February 4, 2011 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 Quote
Danny696 Posted February 4, 2011 Posted February 4, 2011 umm (BTW use the [ js] tags ;)) post up the part that shows you calling this function.... Also, try something like [js]$('#update').css('style', 'hidden');[/js] Quote
Kieran-R Posted February 5, 2011 Author Posted February 5, 2011 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.