Ok, so I need to trigger an event when specific (let's say number 2) slide is displayed. I've checked this function:
$('#myCarousel').bind('slide.bs.carousel', function (e) {
console.log($(this));
});
http://jsfiddle.net/9fwuq/380/
but in the console there's no information what slide is displayed. How to get the actuall number of slide? Anyone can help?
You can use this event instead and following logic: {maybe better way, check the DOC}
$('#myCarousel').bind('slid', function (e) {
var index = $(e.target).find(".active").index();
if(index === 1) // (2 - 1) index is zero based
alert('slide2 displayed!');
})
;
I have this: <fieldset id="booom"> <label><INPUT TYPE="checkbox" NAME="a" VALUE="a">something></label> <label><INPUT TYPE="checkbox" NAME="b" VALUE="b">...
I have this: <fieldset id="booom"> <label><INPUT TYPE="checkbox" NAME="a" VALUE="a">something></label> <label><INPUT TYPE="checkbox" NAME="b" VALUE="b">...
Here is what i'm getting from json file /Date(1435837792000+0000)/ I need to display date in the following format Oct 29, 2010 9:10:23 AM
Here is what i'm getting from json file /Date(1435837792000+0000)/ I need to display date in the following format Oct 29, 2010 9:10:23 AM
I want to split the following string into 2 arrays. First array from the beginning to '/' and the second from '/' to end. Also, I've tryied with replace to remove the '/' but returns error. var str ...
I want to split the following string into 2 arrays. First array from the beginning to '/' and the second from '/' to end. Also, I've tryied with replace to remove the '/' but returns error. var str ...
I am storing an array of objects in localStorage, retriving it each time, attachibg the new object and again storing. the code works fine, only if there is already an entry in localStorage Following ...
I am storing an array of objects in localStorage, retriving it each time, attachibg the new object and again storing. the code works fine, only if there is already an entry in localStorage Following ...