Advertisement
Guest User

Untitled

a guest
Sep 30th, 2014
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. <script>
  2.  
  3. menu[1] = 'opcje po kliknieciu pierwszego';
  4. menu[2] = 'opcje po kliknieciu drugiego';
  5.  
  6. $('.main').click(function()
  7. {
  8. id = $(this).attr('rel');
  9. $("#menu").html(menu[id]);
  10. });
  11. </script>
  12.  
  13. <button type="button" class="main" rel="1">Ustawienia</button>
  14. <button type="button" class="main" rel="2">Polecający</button>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement