4th Street Bar Hive-Bar

Hive-Bar Powered by Hive beta-fdb5b5b

Community post

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

<스크립트>

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

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

}    

});

</스크립트>

2 upvotes $0.00

Replies (0)

Conversation

No replies yet

Replies will appear here as people join the conversation.

Review before signing

Posting as . Signing with . Keychain permission: Posting. Hive Keychain will ask you to approve this action next.


  
Technical details

Operation fingerprint: