How i can send data to INFUSIONSOF using jquery? I have:
$(function(){
$('.signup form').submit(function(e){
e.preventDefault()
$this = $(this);
var email = $this.find('.email input').val();
if(email == '' || !checkEmail(email)){
alert('Enter VALID EMAIL');
return false;
};
var form_method = $this.attr('method');
var action = $this.attr('action');
var serial = $this.serialize();
$.ajax({
url : action,
type : "POST",
data : serial,
dataType: "jsonp",
cache : false,
success : function(data) {
console.log(data);
}
});
});
This not working, i can't get success data. I get this error"Uncaught SyntaxError: Unexpected token < 7b9db76413c68324afe2783301ed3292:109" But this error is on INFUSIONSOFT code.