
 James - 2010-03-25 00:06:16
I have the following javascript function fire when a specific submit is clicked. It changes the opacity of the viewport and displays an image telling the user to wait while the form is processed serverside. It works, but I only want it to fire if the form passes clientside validation. How do I check that the clientside passed validation?
$(function($) 
    {
    $('#get_numbers').click(function() 
        {
        $.blockUI(
            {
            message: '<h1><img src="/path/to/image/busy.gif" /> Please wait...<\/h1>',
            timeout: 0
            });
        });
    });