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

minify - Minimizing css files -

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -