Move cursor to a specific field

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
justsimple
User
Posts: 17

Move cursor to a specific field

Post by justsimple »

3 fields: city , state, zipcode
after finish putting info in city , then press tab key on the keyboard and cursor will go to state.
How to make cursor to skip state and go directly to zipcode ?


mobhar
User
Posts: 11723

Post by mobhar »

You may simply add "tabindex" property to the related field by using jQuery code. For example, for "city" input text you add tabindex = 1, for "zipcode" input text you add tabindex = 2, and so forth.

Put that code in "Startup Script" under "Client Scripts" -> "Table-Specific" -> "Add/Copy Page".

Google "jquery add attribute tabindex".


Post Reply