Using jQUery hide() on newly created dom elements
- by WeaponsTheyFear
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?