Appending html code to a section inside a dialog window isn't working in IE6

Posted by user338413 on Stack Overflow See other posts from Stack Overflow or by user338413
Published on 2010-05-21T12:58:30Z Indexed on 2010/05/21 13:00 UTC
Read the original article Hit count: 213

I'm using jQuery's validation on a form. When the form is validated, I'm using a submitHandler to fill a dialog with data from the form then I open the dialog to display it. Works great except for in IE6. Nothing displays. I've tried initializing the dialog before and after running the validation code but neither makes a difference. Here's the validation code:

$("#acct").validate({
...
   submitHandler: function() {
      fillVerificationDialog();
      $("#verification_dialog").dialog('open');
      return false;
   }
});

Here's the fillVerificationDialog:

function fillVerificationDialog() {
   $("#dialog-data").empty();
   $("<span class='label'>").text("First Name: ").appendTo("#dialog-data");
   $("<span class='value'>").text($("#firstname").val()).appendTo("#dialog-data");
   $("<br/>").appendTo("#dialog-data");
   ...
}

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about validation