Reply To: How to activate the cursor within the search box when page is done loading?

Home Forums Product Support Forums Ajax Search Pro for WordPress Support How to activate the cursor within the search box when page is done loading? Reply To: How to activate the cursor within the search box when page is done loading?

#4326

Ernest Marcinko
Keymaster

Sure, with a bit of a javascript tweak. Put this script to the footer file of your theme just before of the closing body tag:

  <script>
  jQuery(function() {   
    if (jQuery('.probox .proinput input.orig').length>0)
      jQuery('.probox .proinput input.orig')[0].focus();  
  });
  </script>
Best,
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)