javascript - How to disable all keys in key board except tab key -


how disable keys in key board except tab key select box in html. can 1 provide code one? below tried below code not working

i hope you..put textbox , selectbox in page..

document.getelementbyid("li1").onkeydown = function (e) { e.preventdefault();      

}

demo


Comments

Popular posts from this blog

java - HTTP Status 500 - An exception occurred processing JSP page /second.jsp at line 15 -

SQL Server - MyCTE query based on 24 hour period (next day) -

php - Using str_replace to translate a MySQL Table in html -