//enter搜索$('#xzl_input').on('keypress', function(event) { if (event.keyCode === 13) { $('#search_1').trigger('click'); } return false;}); <div class="search_xzl"> <input class="middle_input"type="text" placeholder="请输入大厦名字..." id="xzl_input" > <input class="search"type="button" value="搜索" id="search_1"> </div>
添加回答
举报
0/150
提交
取消