Autocorrect not working in UIWebView
<p>In my app i am displaying a url on my UIWebView .This webView page also consist textfields and i want to disable the autocorrect function = off for these textfields. I have tried all the methods but all in vain. here is my code</p>

<pre><code>[webView stringByEvaluatingJavaScriptFromString: @"var field = document.getElementsByTagName('input');"
 "for(var i = 0 ;i &lt; field.length;i++){ "
 "if(field[i].type == 'text'){"
 "field[i].autocorrect = 'off';"
 "field[i].spellcheck='off';"
 "field[i].autocomplete='off';"
 "field[i].value = 'hello';"
 "}"
 "}"];
</code></pre>

<p>As you can see i tried all these function (autocorrect, autocomplete and spellcheck as off) both individually and as a combination. But nothing works. Dont know why its not working..Thanks in advance for your help!!!</p>
