load page without reloading by form

by Faisal Khan Janjua

JavaScript

$('#property_search_form .btn_submit').on('click', function(e){
  e.preventDefault();
  var $this = $(this);
  var params = $this.parents('form').serialize();
  delete params.pg;
  var href = window.location.pathname + '?' + params;
  window.history.pushState({href: href, sortASC: true }, '', href);
  openURL(href);

  return false;
});