$('#search_form').on('submit',function (e) {
e.preventDefault();
var search = $(this).serialize();
//window.location.href = '/search?'+ search;
$.ajax({
url:"/search/dd",
method:"GET",
data:search,
success:function (data) {
$('#test2').html(data);
},
error: function () {
console.log('Error');
}
});
})
$('.selector').on(......)