Learn

The forum of documents and methods for study - Lượm lặt kiến thức


How to set cursor to input box in javascript?

QaniTri
QaniTri
Admin

Nam Libra Monkey
Tổng số bài gửi : 1492
Tiền xu Ⓑ : 3758
Được cảm ơn № : 2
Ngày khởi sự Ngày khởi sự : 07/01/2013
Đến từ Đến từ : HCMC
Côngviệc / Sởthix Côngviệc / Sởthix : Languages, Softwares, Sciences, Martial arts

How to set cursor to input box in javascript? Empty How to set cursor to input box in javascript?

Bài gửi by QaniTri on 22nd October 2017, 00:43

In jQuery
Code:
$("#textboxID").focus();

Source: https://stackoverflow.com/questions/10894638/how-to-set-cursor-to-input-box-in-javascript
Extension: https://chrome.google.com/webstore/detail/custom-javascript-for-web/poakhlngfciodnhlhhgnaaelnpjljija
slashsearch: https://chrome.google.com/webstore/detail/forward-slash-search/ajneifmmbmkbagjceelhcdfhnnikaebj
See more: https://stackoverflow.com/questions/18054459/how-to-place-the-cursor-auto-focus-in-text-box-when-a-page-gets-loaded-without

With the Vimium extension , you can use the command GI to focus the first (or n-th) text input box on the page.
https://superuser.com/questions/219412/keyboard-shortcut-for-navigating-to-a-text-field-in-google-chrome


    Hôm nay: 27th September 2020, 17:38