UIWebView passing username and password into a form
问题 I have a UIWebView set up containing my universitys intranet page, my code will pass in my username fine (as it is a number) NSString *studentNumber = @"639909"; NSString *javaScriptNumber = @"document.getElementById('username').value=%@;"; javaScriptNumber = [NSString stringWithFormat: javaScriptNumber, studentNumber]; [webViewInt stringByEvaluatingJavaScriptFromString: javaScriptNumber]; However when i try to run the same code to fill in the password field, it will only work with numbers,