title: jQuery preventDefault() how to remove inside same click event
body: <p>jQuery - How to remove click event preventDefault(), the code is like shown below,</p>
  
  <pre><code>$('button').on('click', 'loader', function(event){
      $.ajax({
            url: 'www.myweb.com/string/index.html',
            type: 'get',
            dataType: 'html',
             success: function(data){ 
               event.preventDefault(); 
               // something else 
             },
              error: function(data){
               // how to remove event.preventDefault(); here?
             }
  });
  </code></pre>