Hi. I added codes (jQuery) for keyPress and click of search textbox and button respectively. Now the search query reflects in the browser (http://samplesite/default.aspx?k=query) when I click the button, but it does not when I press enter inside the search textbox. Anyone know this issue? Thanks.
// Keypress event for search box
$('#search-box').keypress(function (e) {
if ((e.which && e.which === 13) || (e.keyCode && e.keyCode === 13)) {
Search();
};
});
// Click event for search button
$('#search-button').bind('click', function () {
Search();
});
p.s. im using location.assign