title: need to open modal window after ajax success
body: <p>I need to open modal window after ajax call success.</p>
  
  <p>JQUERY:</p>
  
  <pre><code>$(".vijai").on("click", function(event) {
  
      $.ajax({
          url: "&lt;?php echo $base ?&gt;/retailer/Suppliersorder/Supplier_OrderPreview",
          type: "post",
          context: document.body,
          async:false,   //NOTE THIS
          data: $("#myform").serialize(),
          success: function(d) {
  
                          alert(d);
                          jQuery('#myModal').show();
                   }
      });
  });
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;button class="btn btn-success vijai" id='murugan'&gt; 
      &lt;i class="fa fa-search-plus"&gt;&lt;/i&gt; 
      Order Preview
  &lt;/button&gt;
  </code></pre>