Question: I am building a mobile site for a Motorola / IE 6 device.

For some reason that I can not come up with, jQuery's .select() function is working, but directly calling it in javascript is not.

```
<input type="text" id="lid" value="" class="as_done">

```

The jQuery way that works is this:

```
$('#lid').select();

```

The way that isn't working is this:

```
document.getElementById('lid').select();

```

---

This has me all sorts of confused. Any ideas as to why this is?

EDIT: I am not trying to do anything in jQuery. I am just trying to select the text inside the input box. I shouldn't need jQuery to do this, but the standard way is not working. <http://www.w3schools.com/jsref/met_text_select.asp>

Answer: 
$() function returns a jquery object whereas document.getElementById returns a simple DOM object.
maybe it happens due to the fact you did not call .focus() in advance

```
document.getElementById('lid').focus();
document.getElementById('lid').select();

```

this is wrapped in jQuerys .select()