title: Form submitted multiple times
body: <p>I'm working on single page app using codeigniter and jquery, by clicking on a menu, i'm loading the content, and this works fine, the first time content is loaded, and when I try to submit a modal form it works, but every time I reload the content and I submit again the same form, I saw that it was submited the number of times I've reloaded the content on the page.</p>
  
  <p>this is how I load the main content to the container when I click on the menu item :</p>
  
  <pre><code>case 'Parametrage':
        $("#container").empty();
        $("#container").load("params");
        break;
  </code></pre>
  
  <p>and the script in view loaded by "param" controller that submits the modal form :</p>
  
  <pre><code>$(function(){
      $('body').on('submit', 'form', function(e){
         e.preventDefault();
  
          $.ajax({
              type: "POST",
              url: "&lt;?php echo site_url("params/save_form"); ?&gt;",
              data:$(this).serialize(),
              success: function(response){ 
                  if(response == 'true'){
                      $.modal.close();    
                      var table = $('#table_id').DataTable();
                      table.ajax.reload();
                      $('#dialog-message').attr('title','Enregistrement');
                      $('#msgIcon').attr('class','ui-icon ui-icon-circle-check');
                      $('#msgMessage').html('Enregistré avec succès');
                      $("#dialog-message").dialog({
                        modal: true,
                        buttons: {
                          Ok: function() {
                            $(this).dialog("close");
                          }
                        }
                      });
                  }else{
                      $('#errors_container').html(response);  
                  }
  
              },
              error: function(){
                  alert('Error');
              }
          });     
      });
  });
  </code></pre>
  
  <p>Can you help please ?</p>
  
  <p>Thanks  </p>
  
  <p>Starting from Shaiful Islam answer, this solves the problem :</p>
  
  <pre><code>case 'Parametrage':
       $("#container").empty();
       //Added this line
       $('body').off("submit", "form");
       $("#container").load("params");
       break;
  </code></pre>