I have this AJAX
post script:
$.ajax({
url: '/products',
data: { product[order_id]:order_id, product[product_id]:product_id, product[count]:count },
type: 'post',
success: function(result){
// $('.resultMessage').text(result);
}
})
And it gives me this error: Uncaught SyntaxError: Unexpected token [
- how could I fix this?