Bind Click Event To 'search' Button In Google Custom Search
I am trying to customize a two column Google custom search. I really liked the ajax over iframe which populates a div (default div#cse). But the problem is it pushes the other cont
Solution 1:
The search box is created with google js api after window.onload, therefore the .bind() fails. Solved the problem with jquery.live().
$("input.gsc-search-button[type=submit]").live('click',showResults);
$(".gsc-clear-button").live('click', hideResults);
Post a Comment for "Bind Click Event To 'search' Button In Google Custom Search"