Uncaught TypeError: Cannot read property 'top' of undefined
-
I have this code in the header
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <!-- библиотека jquery --> <!-- Плавная прокрутка к id #якорю --> <script type="text/javascript"> $(document).ready(function(){ $('a[href^="#"]').bind('click.smoothscroll',function (e) { e.preventDefault(); var target = this.hash, $target = $(target); $('html, body').stop().animate({ 'scrollTop': $target.offset().top }, 600, 'swing', function () { window.location.hash = target; }); }); }); </script> <!-- /Плавная прокрутка к id #якорю -->
when you click on the accordion an error:
Uncaught TypeError: Cannot read property ‘top’ of undefined ?p=4694&preview=true:210
(anonymous function) ?p=4694&preview=true:210
b.event.dispatch jquery.js:9593
v.handle
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Uncaught TypeError: Cannot read property 'top' of undefined’ is closed to new replies.