[wp-hackers] Idea for comments.php
Owen Winkler
ringmaster at midnightcircus.com
Mon Oct 2 23:51:44 GMT 2006
Roland Haeder wrote:
> I mean a hook inside the <form> tag itself like:
>
> <form <?php do_action('comment_form_tag', $post->ID); ?> action=".......>
>
> So everyone can choose to add onSubmit and/or onReset to it or not. :-)
Event.observe($('commentform'), 'submit', function(e) {
// The submit event code goes here.
});
Don't try to force PHP to do what you can already do more easily with
javascript.
Owen
More information about the wp-hackers
mailing list