Простое меню раскрывающиеся при клике


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



Copy this code and paste it in your HTML
  1. $(document).ready(function(){
  2.  
  3. // Меню
  4. $('.menu li').toggle(function() {
  5. $(this).find('ul').fadeIn('200');
  6.  
  7. }, function() {
  8. $(this).find('ul').fadeOut('200');
  9. });
  10. // переход по ссылке приклике
  11. $('.menu li ul li').click(function(){
  12. window.location=$(this).find("a").attr("href"); return false;
  13. })
  14. })

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.