[jQuery] About APPEND

[jQuery] About APPEND


Dear all,
I am getting crazy with a small piece of code/
I have a DIV inside a Form like this:
<form id="mainForm" action="register-askPP.php" method="post">
<table border="0" cellpadding="2" cellspacing="0" width="95%">
<div id="formContents"></div>
<tr><td>
<input type="submit" value="Submit" class="button">
<input type="reset" value="Clear" class="button">
</td></tr>
</table>
</form>
In some events I would like to add some HTML to the DIV. I use:
$('#formContents').append(personFields);
where personFields is some HTML code.
It works very well in Firefox and Safari but it doesnt work in IE7
Please, any of you can help me?
Marco