Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm developing a plugin for a complex custom field that need some js checks and validation before sending.

Is there a way to hook into the sending process with js/jquery?

share|improve this question

closed as off topic by toscho Aug 5 '12 at 15:16

Questions on WordPress Answers are expected to relate to WordPress within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.

1 Answer

I think I found it:

$(document).on('submit', function(){
    alert('submit');
});

it would be useful to block the sending process until the validation is made (wondering about compatibility issues...)

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.