I am learning j query and i want to send id in current URL then UL Li on click event to send id in current URL without page refresh
like this:
Current URL = localhost/backupapp-latest-21-05/index.php?r=site/Application<br>
send id url = localhost/backupapp-latest-21-05/index.php?r=site/Application&abcid=48
there is a abcid=48 is my UL Li id
try this code :
$(document).ready(function(e) {
   $('#hari-ul > li').each(function(index, element) {
      $(element).click(function(e) {
         var id = (this.id);
         window.location.href  = "index.php?r=site/Application&abcid="+id;
      }
    });
  });
});
this code send id in URL but page refresh and i want id without page refresh
 
     
    