title: wordpress ondomready php mode
body: <p>i have asked the question before, but i still can not figure out the full solution. </p>
  
  <p>i want to make my wordpress site menu keyboard accessible, so far the dropdowns will show on tab but will not tab to the elements in the dropdown. </p>
  
  <p>here is my fiddle: jsfiddle.net/X96gX/10/show/</p>
  
  <p>it looks fine here, but when i tried to add the js to my wordpress functions.php im guessing it did not take in ondomready, but i have no idea how to customize that in php </p>
  
  <p>any hints are appreciated!</p>
  
  <p>edit: here is the code added to functions.php (it does show when i load the file as script in the header)</p>
  
  <pre><code>function includes_header_tab()
  {
  wp_enqueue_script( 'header-tab', dirname( get_bloginfo('stylesheet_url')).'/js/header-tab.js', array( 'jquery' ));
  }
  add_action('wp_enqueue_scripts', 'includes_header_tab');    
  
  
  function includes_header_jquery()
  {
  wp_enqueue_script( 'header-jquery', dirname( get_bloginfo('stylesheet_url')).'/js/header-jquery.js', array( 'jquery' ));
  }
  add_action('wp_enqueue_scripts', 'includes_header_jquery');    
  </code></pre>