Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // CODE to alter the current grade options
- if (CG == "F") {
- //this is not working
- $( "#currentOption1" ).prop('checked', true );
- $("#currentOption2").prop('checked', false);
- $("#currentOption3").prop('checked', false);
- $("#currentOption4").prop('checked', false);
- $("#currentOption5").prop('checked', false);
- // this is working - set the class to active for the appearance of the label being selected
- $("#currentOption1").parent().addClass("active");
- $("#currentOption2").parent().removeClass("active");
- $("#currentOption3").parent().removeClass("active");
- $("#currentOption4").parent().removeClass("active");
- $("#currentOption5").parent().removeClass("active");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement