Ganesh Kumar G Ganesh Kumar G - 6 months ago 46
Ajax Question

Bootstrap slide event not working inside AJAX success

This is my code, 'slide' event inside AJAX success call.

success: function(data) {
// I am getting' #mycarousel' successfully in to #my_container
$('#mycarousel').bind('slid', function(e) {
// tried '' too, no change.
// btw, I can see my 'slid' function under event listeners for that element.
// when I paste the above binding code in console again it shows the element too.

I want to print the 'hi' to console on slid event, which is not working now.



Check whether you have multiple versions of jquery libraries loaded in the page.

Use $.fn.jquery to find the loaded version and cross check it with the jquery version you have included and see both are same.