Ganesh Kumar G Ganesh Kumar G - 1 year ago 92
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.


Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download