[eluser]Brain Coder[/eluser]
hey all
i have a problem using the jquery and send the form data to the contoller
the ajax function
Code:
$.post('submit.php',$(this).serialize()+'&ajax=1',
function(data){
if(parseInt(data)==-1)
$.validationEngine.buildPrompt("#captcha","* Wrong verification number!","error");
else
{
$("#contact-form").hide('slow').after('<h1>Thank you!</h1>');
}
$('#loading').css('visibility','hidden');
}
);
i want to send the data to the controller
contact/index
wut the changes in this line
'submit.php',$(this).serialize()+'&ajax=1',
to submit the data
hope u can understand me guys
thanks