выбор эелемента по индесу и переход на страницу


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <script type="text/javascript">
  2. $(function(){
  3. $('.ul_container ul li').click(function(){
  4. var index = $('.ul_container ul li').index(this);
  5. var href=$('#slide-outer .slide a').eq(index).attr('href');
  6. document.location.href = href;
  7. });
  8. });
  9. </script>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.