Scroll Till Active Tab
This question is based on my last question. show or make visible active tab there were some issues that I have to fix so I have fixed. but still I can't make it work properly. Li
Solution 1:
Try this:
$(document).on('click', '.liClicked', function() {
var idValue = ($(this).attr('id'));
console.log(idValue);
var idValues = ($(".element ul li#" + idValue));
console.log(idValues);
// $(idValues).css('left','-50px');var me = $(this);
$('.element').animate({
"left": $('li#' + me.prop('id')).position().left * -1 ,
}, "slow")
});
Also, it isn't recommended to have two elements with the same ID
Post a Comment for "Scroll Till Active Tab"