<input type="text" lay-verify="required" id="zdclassname" placeholder="回车进行搜索,点击选择对应数据"
autocomplete="off"
maxlength="32"
class="layui-input">
js:
//回车搜索
$('#zdclassname').bind('keydown', function (event) {
var event = window.event || arguments.callee.caller.arguments[0];
if (event.keyCode == 13){
alert('hey!');
}
});
1140

被折叠的 条评论
为什么被折叠?



