i want to call the default_cat()
for another process, but i want it by clicking the anchor from the other page?
<a href="example.com/menu2/('default_cat()')">VIEW DETAILS ≫</a>
but not working.
function default_cat() {
$.ajax({
url: '<?=base_url();?>menu2/prod_category/1',
method: "post",
success: function(data){
$(".tab-panes").html(data);
$("#menu-text-a").focus();
}
});
}