Click here to Skip to main content
15,898,954 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
HI,,

I have a dialog window and have a submit button with type="submit".. whenever i am submitting the form it is firing any action.

http://s8.postimg.org/3quz7gvrp/untitled.png[^]

above link will show u the dialog window..
Posted
Updated 2-Dec-13 19:40pm
v2
Comments
Peter Leow 3-Dec-13 1:57am    
You have answered your own question already?

I found this code working...


JavaScript
buttons: {

         buttons: {
         "Submit": function() {  alert('Submitting the form');},

         "Cancel": function() { $(this).dialog('close');}
         }
 
Share this answer
 
The above code will done the job....
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900