> > $("#frmTargets").submit(function(){ > var frmTargetsOptions = { 'dataType':'json', target: > '#output', 'success':addTargetsResponse, 'error': > addTargetsResponseFailed }; > $(this).ajaxSubmit(frmTargetsOptions); > return false; > }); >
Your JavaScript looks fine (assuming that the functions 'addTargetsResponse' and 'addTargetsResponseFailed' exist). But the behavior would seem to indicate a script error somewhere. Are you sure the form plugin is properly loaded? Can you post a test page? Mike