Sunday, 15 May 2011

javascript - Two functions in one button - Calculate and Submit form -


I am currently working with a calculator that calculates the value of the price, as well as a button Submit a form field to my email in click. Javascript / jQuery and HTML to work in Mailto:?

Another method is already working by using

  go = $ ('button'); Go.click (function () {// bunch of code here});  

Research did not find any clear solution through the web, so I tried to ask here.

Try ...

  $ ('button') . Click (function () {// code count here and HTML element $ ('#formId'). Submit (); // to submit form using code id or class}};  

No comments:

Post a Comment