i have a UIWebView which acts like an internet browser and loads the HTML of the webpages that it is at.
in the webViewController, the method webViewDidFinishLoad, w
I don't think finding a reference to the input elements will be difficult using javascript, but it's amending them that is not straightforward with the UIWebView.
A hacky way to achieve what you want in the way you describe could be done by getting the HTML from the UIWebView, amending it, then loading it back in. E.g.:
// Get the HTML from the UIWebView
NSMutableString *html = [[[self.webView stringByEvaluatingJavaScriptFromString:@"document.documentElement.outerHTML;"] mutableCopy] autorelease];
// Find the range of the first input element.
NSRange firstInputRange = [html rangeOfString:@"