Skip to content
  • Home

My PHP / Javascript / JQuery notes

My programming notes made during system developments

Posted in JQuery

On page load set focus on the first input field

Posted on November 27, 2018November 28, 2018 by edleightonprogrammer

NewQuestion

<script>

// — On “Page load” bring the _QUESTION field into focus ———————

$(document).ready( function () {

$(“#_QUESTION”).focus();

});

Share this:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
Like Loading...

Related

Unknown's avatar

Author: edleightonprogrammer

View All Posts

Post navigation

Next Post A zebra_form text field

Categories

  • Bootstrap (4)
  • charts.js (1)
  • colorbox (3)
  • DOM (8)
  • EasyUI (3)
  • Font awesome (4)
  • HTML (12)
  • Javascript (34)
  • JQuery (27)
  • JSON (7)
  • NOTY (3)
  • PHP (29)
  • SQL (10)
  • zebra_form (17)
Blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Reblog
  • Subscribe Subscribed
    • My PHP / Javascript / JQuery notes
    • Already have a WordPress.com account? Log in now.
    • My PHP / Javascript / JQuery notes
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • View post in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...
 

You must be logged in to post a comment.

    %d
      Design a site like this with WordPress.com
      Get started