I have HTML with table that is id is tableID :
<table id="tableID">
and i want get is content, i try to do with with :
NSString *helloElement = [webView stringByEvaluatingJavaScriptFromString:@"document.getElementByID('tableID')"];
but what u get is an empty string, any idea why?
getElementByIDshould not have a capital ‘D’. TrygetElementById