• Sign in
  • Sign up 
  • Welcome
  • FAQ
  • Block Explorer 
  • Night Mode
  • Stolen Accounts Recovery 
  • Change Account Password 
  • Vote for Witnesses 
  • Hive Proposals 
  • OpenHive Chat 
  • Developer Portal 
  • Hive Whitepaper 
  • Privacy Policy
  • Terms of Service
logo
  • Posts
  • Proposals
  • Witnesses
  • Our dApps
LoginSign up

엔터키 입력시 함수 호출 또는 submit 하기 (제이쿼리)

songskysun (25)in #javascript • 8 years ago

<스크립트>

$(".search_input").keypress(function(e) {

if (e.keyCode == 13){ // search_input 이라는 클래스의 객체에서 13번키 (엔터)가 입력되면 
    action();                      //action 함수를 호출한다.

}    

});

</스크립트>

#keypress #jquery
8 years ago in #javascript by songskysun (25)
$0.00
    2 votes
    • modemser
    • songskysun
    Reply 0
    Sort:  
  • Trending
    • Trending
    • Votes
    • Age