How to Loan Div/Section instead of Full page Load

JS Example

Mustufa Rangwala

ajax.jsonRpc('/order/project/customer_address', 'call', {

  'address_project_id': $(this).val(),

  }).then(function (data){

- window.location.reload();

+ //window.location.reload();

+ $('.panel-body').load(location.href+" .panel-body>*","");

  });

     });


You can see in above $('.panel-body').load(location.href+" .panel-body>*",""); will do job for you.