Jquery AJAX: Refresh <article>'s content on success?

BombHagel

New Member
I have a php page with this structure: \[code\]body{ article { form { table } } }\[/code\]I want the tag to refresh it's content when the form is submitted since i need to add new data to the form table that has been added to the database.I am writing the following jquery code inside \[code\]success\[/code\] of AJAX.\[code\]$("article").load("add.php article");\[/code\]i.e. i want to refresh same page with new content without actual refresh..It works fine except that it breaks away my CSS. Is there any way that i can remove \[code\]<article>\[/code\] tag from my page on success and then create a new \[code\]<article>\[/code\]element on the page?
 
Top