Hey so I have this code:
var channel = pusher.subscribe('test_channel');
channel.bind('my_event', function(data) {
alert(data);
$("#element").html(data);
});
But the jQuery html event isn’t working. The alert works, but why won’t the jQuery work?
Your code will work if: