Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(document).ready(function($) {
- function focus() {
- jQuery('#id-for-searchbox').focus();
- }
- jQuery(focus);
- jQuery(function() {
- jQuery(document.body).load(focus);
- jQuery('#id-for-trigger-button').click(focus);
- jQuery('#id-for-trigger-button-timeout').click(function() {
- setTimeout(focus);
- });
- });
- });
- /*Replace #id-for-searchbox and #id-for-trigger-button with yours.*/
Add Comment
Please, Sign In to add comment