Use jQuery select() to select contents of a div
问题 Is it possible to use or adapt jQuery's .select() to set a selection range on the entire contents of a div? I have a div which has a series of labels, inputs, select objects and a couple of other UI elements. I have found code on a separate StackOverflow post with some code hosted on jsFiddle: http://jsfiddle.net/KcX6A/570/ Can this be adapted to select the value of inputs also? Or how would you suggest I go about this? Thanks, Conor Edit: More info I know how to get the value of inputs using