⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Custom search box



rolo2012
  • profile picture
  • Member

Posted 25 September 2012 - 15:30 PM

I am making a backend with GC one for page.I want to add in my site a top search box like the one of this forum that work as filter(for all fields) in the grocery crud of the page. How i can start to do this javascript. Thanks

rolo2012
  • profile picture
  • Member

Posted 25 September 2012 - 15:40 PM

I figure out this, my code is:

$("#search_text").val("The filter");
$("#search_field").val("");
$("#crud_search").trigger("click")


where in $("#search_text").val("The filter"); I set the value of the top search box
If exist a better solution I apreciate