The below URL works fine:
index.php?page=search_result&maker=Any
I want to get into this URL from another page using Jquery Ajax function. Here is my Ajax call:
$(function(){
$(".by_maker").on('click',function(){
var c_maker = $(this).attr('href');
$.ajax({
type: "GET",
datatype: "html",
url: "index.php?page=search_result",
data: "maker="+c_maker,
success: function(response){
html(response);}
});
});
});
I like to get the value of 'maker' from the href like below html:
<a class="by_maker" href="toyota">Toyota</a>
NB: there is not 'form' and 'input' elements. If I click on the Toyota link its not going to the desired URL!!! So, what am I doing wrong??? Any help is appreciated. Thanks in advance.