ben-g
7/26/2016 - 3:46 PM

JS to hide programs on multi-step form

JS to hide programs on multi-step form

//Uses id rather than "validate" class to target second tier options and thier values.

//For removing a whole label and its contents:

$('form option:contains("Education")').remove();

//For removing individual programs:

$("#business option[value='3093'], #business option[value='3094'], #business  option[value='3095'], #business  option[value='3096'], #behavior option[value='3087'], #behavior option[value='3088'], #behavior option[value='3089'], #behavior option[value='3090'], #behavior option[value='3484'], #behavior option[value='3521'], #criminal option[value='3093'], #ministry option[value='3198'], #ministry option[value='3117'], #ministry option[value='3091']").each(function() {     $(this).remove(); });