Saturday, 10 August 2013

#EANF#

#EANF#

I have a front-end where I track what element has been clicked and send it
back to the server to do some work on the backend depending on what that
element is. The code is setup like so...
$('body').on('click', function(e) {
$.post( '/edit', {el: $( e.target ).serialize()}, function(response) {
console.log( response );
});
});
But I get el as an empty string on the server. What else can I do to get
the e.target info to my server?

No comments:

Post a Comment