function checkPeriod() {
  const buttonObj = $('#get_cal')
  const selectedPeriod = $('#P2_MY_PERIOD').find('option:selected').text()

  // Hide button if whole semester isn't selected
  selectedPeriod.includes("Semester") ? buttonObj.show() : buttonObj.hide()
}
/** Check if whole semesters are selected */
Check if whole semesters are selected
Check if whole semesters are selected
function checkPeriod() {
  const buttonObj = $('#get_cal')
  const selectedPeriod = $('#P2_MY_PERIOD').find('option:selected').text()
  selectedPeriod.includes("Semester") ? buttonObj.show() : buttonObj.hide()
}
function checkPeriod ( ) { const buttonObj = $ ( '#get_cal' ) const selectedPeriod = $ ( '#P2_MY_PERIOD' ) . find ( 'option:selected' ) . text ( ) selectedPeriod . includes ( "Semester" ) ? buttonObj . show ( ) : buttonObj . hide ( ) }
Check if whole semesters are selected
Check if whole semesters are selected
// Hide button if whole semester isn't selected