You can't have the div inside the table code like that, try moving it either
into a <tr>td></td></tr> or on the outside of the table and see if that
works.

If not, try:
$('#formContents').html(personFields);



On 7/16/07, Marco <[EMAIL PROTECTED]> wrote:



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




--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com

Reply via email to