0

Anyone ever been to this situation where you want to make the android 'select all' option to select custom content? Now 'select all' selects the whole page. I only want it to select one part of the page. Any help will be appreciable. please check the screenshot below attached

enter image description here

Sagar Zala
  • 4,854
  • 9
  • 34
  • 62
Bharath
  • 85
  • 1
  • 10

1 Answers1

0

Add this class where you do not want the selection

.noselection {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
Ruben Sala
  • 271
  • 1
  • 10
  • I do want all fields to be selectable. But separately. Say, if I select one word and click 'select all' it should only select that particular paragraph. Anything I do to achieve this? – Bharath Sep 04 '18 at 16:00