$("input[id^='code']");//All input tags whose id attribute starts with code $("input[id$='code']");//The id attribute starts with code All input tags ending in $("input[id*='code']"); //All input tags whose id attribute contains code
/ /Handle keyboard operations on the text box jqueryObj.keyup(function(event){ var keyCode = event.which;//Get the key value of the currently pressed keyboard, the Enter key is 13 }
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn