Skip to content Skip to sidebar Skip to footer

Data Variable In Jquery Ajax Function

I'm trying to use the code below, but it's not working: UPDATED WORKING: $(document).ready(function() { $('.infor').click(function () { var datasend = $(this).html();

Solution 1:

I would change $datasend = $(this).html; to var datasend = $(this).html();

Next I would change data: 'im_id=$datasend', to data: 'im_id='+datasend,

Post a Comment for "Data Variable In Jquery Ajax Function"