jQuery(document).ready(function () {
      function educational_landing_page_search_loop_focus(element) {
      var educational_landing_page_focus = element.find('select, input, textarea, button, a[href]');
      var educational_landing_page_firstFocus = educational_landing_page_focus[0];  
      var educational_landing_page_lastFocus = educational_landing_page_focus[educational_landing_page_focus.length - 1];
      var KEYCODE_TAB = 9;

      element.on('keydown', function educational_landing_page_search_loop_focus(e) {
        var isTabPressed = (e.key === 'Tab' || e.keyCode === KEYCODE_TAB);

        if (!isTabPressed) { 
          return; 
        }

        if ( e.shiftKey ) /* shift + tab */ {
          if (document.activeElement === educational_landing_page_firstFocus) {
            educational_landing_page_lastFocus.focus();
              e.preventDefault();
            }
          } else /* tab */ {
          if (document.activeElement === educational_landing_page_lastFocus) {
            educational_landing_page_firstFocus.focus();
              e.preventDefault();
            }
          }
      });
    }
});