jQuery function not working properly
<p>Hello again SO community.</p>

<p>Is there something wrong with this piece of code:</p>

<pre><code>(function ($) {
jQuery.fn.submitAsync = function (adHocOpts, addFormObserver, skipValidation) {        
    $.each(this, function (i, form)
    {
        if (!$(form).data('submitOptions') &amp;&amp; addFormObserver)
            $(form).trigger('formLoad');

        $(form).data('adHocOptions', $(form).data('submitOptions'));

        $(form).mergeOptions('adHocOptions', adHocOpts);

        var options = $.extend($(form).data('adHocOptions'),
        {
            type: form.method,//.attr('method'),
            url: form.action,//.attr('action'),
            data: $(form).serialize()
        });

        if (skipValidation)
            options.validation = [];            
        setTimeout($.ajax(options), 10);

    });
};})(jQuery);
</code></pre>

<p>I keep getting an Unexpected identifier error, and the execution is halted. Any ideas?</p>

<p>Thank you</p>
