iPhone: stringByEvaluatingJavaScriptFromString gives wrong output
<p>I am showing a web page using html string in a UIWebview. I want to retrieve the value typed from the below text area code.</p>

<pre><code>result = [result stringByAppendingFormat:@"&lt;textarea name=\"qId_"];
    NSString *questionid = [question valueForKey:@"QuestionId"];
    NSString *questionidSTR = (NSString *) [NSString stringWithFormat:@"%@", questionid];
    result = [result stringByAppendingFormat:questionidSTR];
    [questionidArray addObject:questionidSTR];
    result = [result stringByAppendingFormat:@"\" rows=\"5\" style=\"width:90%\"&gt;&lt;/textarea&gt;"];
</code></pre>

<p>I tried </p>

<pre><code>NSString  *value = [NSString stringWithFormat:@"%@%@%@",@"document.getElementById('",[questionidArray objectAtIndex:i],@"').value"];

   NSString* out = [enterSurveyWebview stringByEvaluatingJavaScriptFromString:value];
</code></pre>

<p>But, its not giving the correct output, i think i'm doing wrong when retrieving the value. </p>

<p>Could someone please correct me for retrieving portion?</p>

<p>Thank you.</p>
