Ios - Injecting Text Into A Uiwebview Textfield
Quick question - if a textfield in a webform, does not automatically has the focus set by the form, ie you got to press the field before the keyboard pops up - am I correct to assu
Solution 1:
Yes you can! You can use Javascript to set the value:
[theWebView stringByEvaluatingJavaScriptFromString:@"document.getElementById('textFieldID').value = 'MyText'"]
Here's an article which shows you how to set and get the values of textfields with Javascript.
Hope this helped!
Post a Comment for "Ios - Injecting Text Into A Uiwebview Textfield"