Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Hide pizzas
- $('.pizzas').hide();
- // Handle click
- $('#newyork').click(function() {
- $(this).next('.pizzas').slideToggle();
- });
- $('#chicago').click(function() {
- $(this).next('.pizzas').slideToggle();
- });
- $('#sanfran').click(function() {
- $(this).next('.pizzas').slideToggle();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement