On each click a.ui-tabs-anchor html code generating and increasing error rapidly like a bellow snippet.
error which i am getting:- Uncaught TypeError: undefined is not a function(index):516 (anonymous function)jquery.js:3 f.event.dispatchjquery.js:3 f.event.add.h.handle.i
Bellow snippet code i am using to stop ui tab on click them.I have searched through the web but i didn’t find any solution. If any body have any idea to resolve this let me know.
$(document).ready(function(){
$('a.ui-tabs-anchor').click(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
if (target.length) {
$('html,body').animate({
scrollTop: target.offset().top().stop(true,false)
}, 0);
return false;
}
}
});
});