Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 1st, 2012  |  syntax: None  |  size: 0.37 KB  |  hits: 17  |  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. $j(function () {
  2.        
  3.         // hide the part of the form with course fee
  4.         var courseFee = $j('#program-course-fee');
  5.         courseFee.hide();
  6.                
  7.         // bind a click handler to it
  8.         $j('#program-type').click(function (e) {
  9.                 if ($j(e.target).is("li.credit")) {
  10.                         // show the rest of the form
  11.                         courseFee.slideDown(200);
  12.                 }
  13.                 else {
  14.                         courseFee.slideUp(200);
  15.                 }
  16.         });
  17.        
  18. });