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?
March 24, 2015 at 8:56 am
#4326
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 :)



