Using jQUery hide() on newly created dom elements
Posted
by WeaponsTheyFear
on Stack Overflow
See other posts from Stack Overflow
or by WeaponsTheyFear
Published on 2010-01-14T00:38:44Z
Indexed on
2010/04/02
8:03 UTC
Read the original article
Hit count: 187
I am relatively new to jQuery. What I have is an app that is displaying a list of content items from the database in a table.
If I click the title link of the page, it will load the page to edit in a tab (clicking teh tab lets me view that form to edit).
My problem is that in using .load and creating the html inside an empty div, my css that was previously hidden by jQuery is no longer being hidden in this new form.
For example, on the same page, I have a div with the class error. This is hidden. I click the title to edit, the page loads in an empty div, and the divs with error as a class are not hidden.
Is there a way around this to get these elements hidden?
© Stack Overflow or respective owner