Quantcast
Channel: General developer forum
Viewing all articles
Browse latest Browse all 37690

Re: adding "onsubmit" to a form

$
0
0
by Davo Smith.  

I'd probably pass via the 'attributes' paramater, assuming 'submit' buttons have an 'attributes' paramater - I'd have to check. Assuming there is an attributes paramater, it'd probably look like:

array('onclick' => 'my_onclick_function()')

You would then need to add the javascript to the page (either via an 'html' form element, or loaded onto the page that outputs the form).


Viewing all articles
Browse latest Browse all 37690

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>