I want to submit a form ajax when the user clicks on the Enter or the Submit Button this is my code :
$('.setter').on('submit keypress', function(){
$.post(action,$(this).serialize(), function(data){
window[data.jsFunction](data); // or get it form CI as an array data
}, "json");
});
thanks in advance