Use jQuery select() to select contents of a div

前端 未结 4 1538
耶瑟儿~
耶瑟儿~ 2020-12-10 07:48

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, selec

4条回答
  •  青春惊慌失措
    2020-12-10 08:25

    Not really. In most browsers it's not possible for the contents of more than one input to be selected at once. See http://jsfiddle.net/timdown/D5sRE/1/

提交回复
热议问题