Press "Enter" to skip to content

Selects The Text Contents of Inputs, Textareas, and Contenteditable Elements On Focus

vue-select-on-focus is a component of vue.js that selects input text contents, textareas, and editable content elements on focus.

vue input select text on focus, javascript select all text on focus, javascript select text in input, vue select text in input

How to make use of it:

Install:

$ npm install --save vue-select-on-focus
or
$ yarn add vue-select-on-focus

Usage

import Vue from "vue"
import selectOnFocus from "vue-select-on-focus"

Vue.use(selectOnFocus)
import selectOnFocus from "vue-select-on-focus"

export default {
  directives: { selectOnFocus },
  template: "<div><input type='text' value='Lorem Ipsum' v-select-on-focus /></div>"
}

select text on focus input Plugin/Github, select input text on focus react


See Demo And Download

Official Website(syropian): Click Here

This superior jQuery/javascript plugin is developed by syropian. For extra advanced usage, please go to the official website.

Be First to Comment

    Leave a Reply

    Your email address will not be published.