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

python - rpy2 import is not working -

javascript - How to get MySQL query result returned using $.ajax -

javascript - How to use the code plugin with popcornjs -