Hi, I am using this code to set the focus on textarea of HTML control using javascript in objective c. But its not working in UIWEBVIEW, while other code working for getting values of the html controls with same controls ID.
here the code: it is working
NSLog(@"m values %@",[webView stringByEvaluatingJavaScriptFromString:@"document.getElementById('2txt').value"]);
it is not working:
[webView stringByEvaluatingJavaScriptFromString:@"document.getElementById(\"2txt\").focus();"];
Any Idea,
Thanks,