SHARE
TWEET

Untitled

a guest Jun 15th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //function to run whenever user changes radio inputs
  2. $(document).ready(function(){
  3. $('input[type="radio"]').on("change",function(){
  4.   //making chosen radio options to variables
  5.   var $year = $('input[name="year"]:checked');
  6.   var $path = $('input[name="path"]:checked');
  7.    //junior year logic
  8.   if($year.val() == "junior" && $path.val() == "artificer"){
  9.     $("classResult").innerHTML = "Junior artificer timetable!";
  10.   } else if ($year.val()  =="junior" && $path.val() =="cursebreaker"){
  11.     $("classResult").innerHTML = "Junior cursebreaker timetable!";
  12. } else if ($year.val()  =="junior" && $path.val()=="crypto") {
  13.     $("classResult").innerHTML = "Junior crypto timetable!";
  14. }
  15. });
  16.   }`
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top