javascript - How to when enter is hit the save button in jquery fires? -


एक ग्राहक रिकॉर्ड जोड़ने के लिए मेरा jquery कोड है:

  $ ("# dialog डायलॉग ({autoOpen: false, // शो डायलॉग ऊंचाई: 300, चौड़ाई: 220, मोडल: सच, बटन: {"सहेजें": फ़ंक्शन () {$ (this) .dialog ('close') ("ग्राहक सफलतापूर्वक जोड़ा!"); $ .post ('insertcus.php', $ ('# ग्राहक')। Serialize (), फ़ंक्शन (परिणाम) {});}, "रद्द करें": फ़ंक्शन () {$ (यह) .dialog ("बंद");}}});  

एन्टर दबाए जाने पर मैं कैसे ऑटोकलिक बटन को बचा सकता हूँ? और सहेजने के बाद मैं एक फ़ील्ड को कैसे रिफ्रेश कर सकता हूं? मैं अपना इनपुट चयन फ़ील्ड रीफ्रेश करना चाहता हूं।

  $ ("# dialog-form") .keypress (फ़ंक्शन (ई) {if (e.keycode == $ .ui.keyCode.ENTER) {$ ('# saveButton')। ट्रिगर ('क्लिक');}});  

Comments

Popular posts from this blog

c# - Reactive Extensions ControlScheduler -

scala - Play Framework - how to bind form to a session field -

c++ - Why does Visual Studio Release build break on non-executing code line -