/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
//
//jQuery(function($) {
//    $('select.voucheramount').change(function() {
//        var $select = $(this), $input = $select.next();
//
//        $select.val() == 'other'
//            ? $input.attr('name', $select.attr('name'))
//                    .show()
//            : $input.removeAttr('name')
//                    .hide();
//    }).triggerHandler('change');
//});


$(document).ready(function(){
       
        //Hide div w/id extra
       $("#hidden").css("display","none");

        // Add onclick handler to checkbox w/id checkme
       $("select.voucheramount").change(function() {
        var $select = $(this), $input = $select.next();
        // If checked
        $select.val() == 'other'
        ?  $("#hidden").show("fast")
            : $("#hidden").hide("fast");
      });
   
    });