Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. // CODE to alter the current grade options
  2.  
  3. if (CG == "F") {
  4.  
  5. //this is not working
  6. $( "#currentOption1" ).prop('checked', true );
  7. $("#currentOption2").prop('checked', false);
  8. $("#currentOption3").prop('checked', false);
  9. $("#currentOption4").prop('checked', false);
  10. $("#currentOption5").prop('checked', false);
  11.  
  12. // this is working - set the class to active for the appearance of the label being selected
  13. $("#currentOption1").parent().addClass("active");
  14. $("#currentOption2").parent().removeClass("active");
  15. $("#currentOption3").parent().removeClass("active");
  16. $("#currentOption4").parent().removeClass("active");
  17. $("#currentOption5").parent().removeClass("active");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement