title: jQuery Dialog issues in IE9
body: <pre><code>&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/&gt;
      &lt;link href="themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css" /&gt;
      &lt;link href="includes/jquery.cluetip.css" rel="stylesheet" type="text/css" /&gt;
      &lt;script src="includes/jquery-1.4.2.min.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script src="includes/jquery.ui.core.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script src="includes/jquery.ui.widget.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script src="includes/jquery.cluetip.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script src="includes/jquery.ui.mouse.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script src="includes/jquery.ui.draggable.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script src="includes/jquery.ui.position.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script src="includes/jquery.ui.resizable.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script src="includes/jquery.ui.dialog.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script src="includes/jquery-ui-1.8.1.custom.min.js" type="text/javascript"&gt;&lt;/script&gt;
  
      &lt;script type="text/javascript" language="javascript"&gt; 
  
   function ClosePopUp() {
       $('#dialog').dialog('close');
       var NewModelNo = $('#hdnModelNumber').val();
       $("#ddlModelNumber option[value='" + NewModelNo + "']").attr("selected", "selected");
       $('#ddlModelNumber').change();
       return true;
   }
  
  
      $(function ()  { 
           var buttons = $('.ui-dialog-buttonpane').children('button');
           buttons.remove();
           $('#dialog').append(' &lt;br/&gt;'); 
           $('#dialog').dialog({      
           title: '&lt;span class="modalpopup-title"&gt;Model Renamed&lt;/span&gt;',
           modal:false,
           height:250,
           width:560,
           position:'top',
           autoOpen:false
           });
           $("#ddlModelNumber").bind('change', function (e) {
           e.preventDefault();
           ModelPopup();  
          });             
       });
      function ModelPopup() { 
               var ModelNo = $('#ddlModelNumber :selected').val();
               var NewModelNo = $('#hdnModelNumber').val();
               if (ModelNo == NewModelNo) {
                   return true;
               }
               jQuery.ajax({
                   type: 'POST',
                   contentType: 'application/json; charset=utf-8',
                   data: "{ 'ModelNo': '" + ModelNo + "' }",
                   dataType: 'json',
                   url: 'product-registration.aspx/CheckConflicts',
                   success: function(result) {
                       if (jQuery.trim(result.d).length &gt; 0) {
                           $('#dialog').text('');
                           var NewModelNo = result.d;
                           $('#hdnModelNumber').val(NewModelNo);
                           var content = "&lt;span class='modalpopup-content'&gt;The model " + ModelNo + " has been renamed to " + NewModelNo + " so " + NewModelNo + "&lt;br/&gt;"
                           content += "has been selected in the Model drop down menu.&lt;/span&gt;";
                           $('#dialog').append(content); //message to display in divmessage div
                           $('#dialog').append('&lt;br/&gt; &lt;br/&gt;&lt;a&gt;&lt;img src ="images/sp_int_closeWindow_btn.gif" alt ="Close" onclick="javascript:return ClosePopUp();" id="messagego" /&gt;&lt;/a&gt;');
                           $("#dialog").attr("style", "font: 11px; font-family: Arial; font-weight: bold;visibility:visible;");
                           $('#dialog').dialog('open');
                           return false;
                       }
                   }
               });
               return true;
   }
  </code></pre>
  
  <p>
      
          </p>
  
  <p>This above code works fine in chrome but causing weird problems in IE. It is actually behaving inconsistent. To Summarize, when the page loads first time, on change of a dropdown pop up doesnt appear rather throws some errors in libraries(rarely) and if i refresh the page dialog appears. Please help!!!!</p>