I've built several forms using the jQuery Forms plugin and the ajaxForm and
ajaxSubmit with fieldSerialize.

But, this one little problem that seems simple is driving me crazy.

The following code submits the form when the Submit button is clicked. How
can I also set it up so that when a text link is clicked, the form will
submit (in addition to the submit button)?

Here's my code
[code]
$(document).ready(function() { 
    var DOC = $('#DataForm .calcData').fieldSerialize();
        var options = { 
                url: 'test.php',
                type: 'post',        
                clearForm: true,
                success: function() { 
                  alert('Your Data Wuz Good.'); 
                  cleardb();
                  } 
        }; 
 
    // bind form using 'ajaxForm' 
    $('#DataForm').ajaxForm(options);
    });
});

<form id="DataForm" name="DataForm">
<div id="databaseDisplay"></div>
<input type="submit"  id="submitButton" name="submitButton" value="Submit
Data" />
</form>



Any and all help is greatly appreciated. Thanks
-- 
View this message in context: 
http://www.nabble.com/-Forms-Plugin--Additional-Submit-Method-tp20016785s27240p20016785.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to