I've been attempting to utilize the following code, but it's not functioning as expected: UPDATED WORKING:
$(document).ready(function() {
$('.infor').click(function () {
var datasend = $(this).html();
$.ajax({
type: 'POST',
url: 'http://domain.com/page.php',
data: 'im_id='+datasend',
success: function(data){
$('#test_holder').html(data);
}
});
});
});
Even though I used $datasend
as the variable for sending data, it doesn't return the value itself, just its name.