Selecting a range of text in an input box

You need to select text in an input box for any "Google suggest" type functions, however the selection model changes a lot between different browsers. The DWRUtil function to help here is: DWRUtil.selectRange(ele, start, end).

For example:

DWRUtil.selectRange("sel-test", , )

An input with id="sel-test":

Generally speaking DWR is not a generic Javascript library so it does not attempt to provide fill this need. However this is one of these really useful functions to have around if you are doing Ajax work.