I changed my coding style for php and jQuery, but my Registration
$("#reg_form_company").bind("submit", function() {
$.fancybox.showActivity();
$.ajax({
type : "POST",
cache : false,
url : $(this).attr('action'),
data : $(this).serializeArray(),
success : function(data) {
$(".printArea").empty().append(data).css('visibility','visible');
}
});
return false;
});
Then this is my Form
[...]
Then after clicking the "Submit" button, it doesn't work, I assume that somebody can help me to solve this problem, coz the $.ajax might confuse about POST(for inputs) and the GET(for the parameters of the "action" form)
I appreciate for your help, you can also modify the entire jQuery code if it's required.
Sorry guys for not including the #reg_form_company, and the fancybox