jQuery - How to remove click event preventDefault(), the code is like shown below,
$('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?
}
});