skip to Main Content

jQuery get currect active slide

How can I get current active slide, and when change slide I get the new one? I've try with: $('#carouselExampleIndicators').bind('slid', function() { let currentIndex = $('button.active').index() + 1; alert(currentIndex) }); but not working This is JsFiddle: https://jsfiddle.net/moku23/65p0r9f1/6/

VIEW QUESTION

Bootstrap modal does not show with microsoft visual studio – Jquery

I have the following code copy-pasted from w3schools Modal training page . <!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <h2>Activate Modal with JavaScript</h2>…

VIEW QUESTION

Jquery ajax call wrong payload

I have some troubles whit jquery ajax call, infact I tried to perform a post call passing like data a string variable: myVar = 'Hello'; $.ajax( type: 'POST', url : 'https://...', data: myVar, success : function(data) { }, complite: function()…

VIEW QUESTION
Back To Top
Search