I changed my coding style for php and jQuery, but my Registration
$(\"#reg_form_company\").bind(\"submit\", function() {
$.fancybox.showActivity();
$.aj
You must intercept the click/submit event for your form and refer the form as shown bellow:
$("#myForm").submit(function(){
var $form = $(this);
$.ajax({
type : "POST",
cache : false,
url : $form.attr('action'),
data : $form.serializeArray(),
success : function(data) {
$(".printArea").empty().append(data).css('visibility','visible');
}
});
})
And add an id to your form like: