title: how to clear data of bootstrap modal at the time of submit
body: <p>I use this ajax code for submit data on model but model is not clear without reloading page</p>
  
  <pre><code>$.ajax({
         type:'POST',
         data:   {phone_no:phone,note:note,todate:todate,fromdate:fromdate},
         url:'calls_note.php',
         success:function(data) {
                  if(data == 1)
                  {
                      $('#info3').hide();
                      $('#err_msg').show().children('div').html("Error in updating Note").show().fadeOut(10000);
                      $('#info').hide();
                  }       
                  else
                  {
                      $('#info3').hide();
                      $('#err_msg').hide();
                      $('#info').hide();
          $('#table_div').html(data);
          $('.table').dataTable();
          $("#myModal").modal("hide");
          $(this).removeData('#myModal');
  
  
                  }
             }
        });
  </code></pre>
  
  <p>plz tell me what i do how to clear modal data without reload the page</p>