Are you first timer at Why not join us and start exchange your programming knowledge with everyone. Register today!

jQuery - search based on val()

0 votes
added Jun 29, 2018 in jQuery by LC Marshal Captain (26,080 points)
edited Nov 2, 2018 by LC Marshal
//click element bring to specific link
  window.location ="news?combine=&field_category_value=news#main-content";
  return false;
$(".header-search .btn-header-search").click(function() {
  var searchterm = $(".header-search input").val();
  if (searchterm != "") {
    window.location = "/projects?keyword=" + searchterm;

Please log in or register to response this reference. - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.