On each click Incresing console error no :Uncaught TypeError: undefined is not a function

On each click a.ui-tabs-anchor html code generating and increasing error rapidly like a bellow snippet.

Error Image

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.

  $('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) {
        scrollTop: target.offset().top().stop(true,false)
       }, 0);
        return false;

sorry accidentally i was selected php the question is related to jquery

At a first glance, I don’t see anything obviously wrong with your code.

Could you post a code snippet (so HTML and JS) which recreates the problem you are having?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.