in a xcode webview: how to get the name or id of input tag selected?
Inside an xcode application, I have an webview with a variable number of text input.
There is a method to get to xcode the attribute "name" or "id" when I selected the field?
My problem is that 开发者_StackOverflow社区I don't know how to pass the name or id of selected field to xcode.
Check this out :
NSString *string =
[webView stringByEvaluatingJavaScriptFromString:@"document.getElementById('your_id_here');"];
精彩评论