Clear a Flare HTML5 Search Field with the Escape Key

If you want the search field in Flare HTML5 output to clear when escape is pressed, add the following to the toolbar JavaScript. window.onload = function() { $(“#search-field”).keyup(function (e) { if (e.keyCode == 27) { $(“#search-field”).val(“”); } }); } If there is already a window.onload assignment, just add the inner part to the existing assignment.… Continue reading Clear a Flare HTML5 Search Field with the Escape Key