javascript - HTML input does not get Highlighted/Selected -


we developing asp.net application. have used html input control . facing problem select/highlight value in control.

on pages html input control on div, user control. may reason?

enter image description here

in javascript can use .focus() manually focus textbox

document.getelementbyid('txtmemo').focus(); 

with plain markup use autofocus attribute.

<input type="text" id="txtmemo" autofocus /> 

autofocus introduced in html5, older browsers won't have support it.


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -