So I have looked at some previous example online and开发者_如何学C it seems prettys strait forward
<form:input path="searchParameter.instanceName" id="searchBox" onkeydown="if (event.keyCode == 13){ document.getElementById('btnSearch').click() return false }"/>
And it works fine with firefox but it does not work at all with I.E. 7 it just submits the form. Any idea wh
You seem to be missing a semicolon.
document.getElementById('btnSearch').click(); return false ;
精彩评论