jQuery selector for submit should not be restrictive to input tag
-
Hi!
If I want to use
<button type="submit">
tag instead of<input type="submit">
tag the javascript code in file/wp-content/plugins/contact-form-7/includes/js/scripts.js
on line 381 actually is:https://plugins.trac.www.ads-software.com/browser/contact-form-7/trunk/includes/js/scripts.js#L381
wpcf7.toggleSubmit = function( form, state ) { var $form = $( form ); var $submit = $( 'input:submit', $form ); <------- if ( typeof state !== 'undefined' ) { ...
and should be changed to:
wpcf7.toggleSubmit = function( form, state ) { var $form = $( form ); var $submit = $( ':submit', $form ); if ( typeof state !== 'undefined' ) { ...
can you please release a new version with this change? Thx!
- The topic ‘jQuery selector for submit should not be restrictive to input tag’ is closed to new replies.