I’m trying to create a hidden textfield for an iphone specific site, basically I’ve taken a textfield, hidden all of its elements and show an image instead, when clicked this pops up an onscreen keyboard, as well as submitting when the form loses focus.
What I can’t get rid of is the text caret. It flashes at me as if I’m some loser who can’t set his VCR to anything but 12:00.
Why not just change the type of the input element to “hidden” when it’s not supposed to be edited? E.g.
That way it won’t allow for the caret to be standing on it. If you need its value to be displayed, add a
DIVand populate it with the datafield value. Then just put a click event on theDIVto activate the input field.