jquery - input type=search not working -
i have web app. uses jquery, bootstrap , kendo ui. have filterbox input searching kendo grid - had type="text"
in markup changed take advantage of html5 type="seacrh" samll x in field when user types - reason not working? testing in chrome , did ctrl , f5 make sure reloaded page?
input field current looks like:
<input id="txtsearch" type="search" placeholder="type filter...">
and in js have following:
var searchtextbox = $("#txtsearch"); searchtextbox.on("change keyup paste mouseup", function () { // search logic });
i on 35.0.1916.153 m , working please check fiddle.
var searchtextbox = $("#txtsearch"); searchtextbox.on("change keyup paste mouseup", function () { var = ["#ff0000","blue","gray"]; var rand = back[math.floor(math.random() * back.length)]; $("#divtest").css('background',rand); });
Comments
Post a Comment