JQuery Clear Form on close -


I have a JQuery Dialog script below, I'm trying to figure out how to clear FORF I close the dialog

  function clearForm () {$ (': input', '# calcQuery'). No (': button, submit: reset, hidden') .val (''); }; // form popup $ (document) .ready (function () {// var dataString = $ ("# calcQuery"). Serialize (); $ ("# formbox") dialog ({bgiframe: true, autoOpen: false "Calculator", Button: {"Count": Function () {// Form $. Ajax ({Type: "Post", Url: 600, Width: 400, Model: False, PassOnScope: True, Title: "Calc.php", Data: $ ("# Calculator"). Serialize (), datatype: "html", success: function (response) {$ ("# calcbox"). Html (response); $ ("# Calcbox "). Show ();} error: function (excerpt, ajax option, thrown error ) {Warning (Excerpt); Alert (Throwed;)}}). Reaction Text; // Form Post}}}); $ ('#calcButton') Click (function () {$ ( '#FormBox' dialog ('open'). Details are false;});}); $ ("#Formbox"). Bind ('dialogue', function (event) {clearForm ();});  

Use

  $ ("# Formbox "). DLOG ({BGIFarm: true, auto open: false, height: 600, width: 400, model: false, closed: clean form});  

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -