javascript - how to focus on a div element in webview use code in android development -


i had question while try focus on div element in webview in android development. had set editable div element. however, no matter use webview.requestfocus() or document.getelementbyid('container').focus() or both, never works. want know how focus div element in webview.

when div loading event generated js. can set tab index attribute , give try

http://jsfiddle.net/qakgv/

<div id="generate">  $("#generate").attr('tabindex',-1).focus(function () {     //do stuff }); 

Comments

Popular posts from this blog

php - Embed BBCode within itself not working -

three.js - how to load gltf in three JS -

sql server - T-SQL: Access DB objects in same schema without qualifying? -