R0bb0b 344 Posting Shark

I am trying to do a simple focus() on mobile. Actually I am using an iphone simulator, but from what I can tell, I am not the only one having this issue but I cannot find a solution. Is there something that I can use instead with jquery? This works in a firefox and safari and chrome but not safari on mobile.

code is extremely complicated and I am getting no errors in firefox or chrome or even the mobile phone itself, seems like it is just skipping over the command!?

document.getElementById("idname").focus();


UPDATE: I have changed to $.jquery focus and get the same response. The keyboard goes away so something is happening but the phone does not focus on the new field. :( Any help would be appreciated.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.