3000&sort=applicant&category=1'; $url = $url + '&keyword=' + $val; } } else { $url = $url + '&keyword=' + $val; } $('a.search_tag').attr('href',$url); }) $(document).ready(function(){ })