Yesterday I had question (answered), which I have to expand a bit more today. I need to pass two or more variables, but I can't find the proper syntax: UPDATED, WORKING CODE:
$(document).ready(function() {
$('.infor').click(function () {
var datasend = $(this).html();
var datasendmore = $(this).next().html();
$.ajax({
type: 'POST',
url: 'http://domain.com/page.php',
data: {im_id:datasend, yt_id:datasendmore},
success: function(data){
$('#test_holder').html(data);
}
});
});
});
Thanks.