I am creating a mobile site for a Motorola / IE 6 device.
For some reason that I can't think of, the jQuery.select () function works, but there is no direct call to it in javascript.
<input type="text" id="lid" value="" class="as_done">
The jQuery method used is as follows:
$('#lid').select();
This method does not work:
document.getElementById('lid').select();
I am all at a loss. Any ideas as to why this is?
EDIT: I'm not trying to do anything in jQuery. I'm just trying to select text inside an input field. I don't need jQuery for this, but the standard way does not work. http://www.w3schools.com/jsref/met_text_select.asp
source
share