he form is submitted, check the salary option selected
      jobsForm.addEventListener('htmx:trigger', () => {
        checkSalaryBeforeSubmit();
      });

      jobsForm.addEventListener('htmx:afterRequest', (e) => {
        // Check if the form is the jobs form and not the input ts_query requesting locations
        if (e.detail.elt.id === 'jobs-form') {
          // Update hx-spinner
          jobsForm.setAttribute('hx-indicator', '#dashboard-spinner, #save-spinner');

          if (isSuccessfulXHRStatu