Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 9th, 2013  |  syntax: JavaScript  |  size: 0.38 KB  |  views: 38  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. (function() {
  2.  
  3.   jQuery(function() {
  4.     $(function() {
  5.       return $('#secondthing').hide();
  6.     });
  7.     return $('#trips').change(function() {
  8.       var trips;
  9.       trips = $('#trip_quantity :selected').text();
  10.       if (trips === '1') {
  11.         return $('#secondthing').hide();
  12.       } else {
  13.         return $('#secondthing').show();
  14.       }
  15.     });
  16.   });
  17.  
  18. }).call(this);
clone this paste RAW Paste Data