Copy selected item's text from select control html

后端 未结 4 1256
说谎
说谎 2021-01-17 05:11

I have a select control with pre defined values and I want my users to be able to copy the selected item\'s text with CTRL + C

I don\'t want them to be able to chang

4条回答
  •  轮回少年
    2021-01-17 05:18

    Fiddle
    As opposed to @Dogoku's answer, this is more direct, you don't need to first select your text. Just hit ctrl+c whilst the

    提交评论

提交回复
热议问题