How about this?
$('#out').focus(function () {
$('#out').select().mouseup(function (e) {
e.preventDefault();
$(this).unbind("mouseup");
});
});
More Related Contents:
- Get the real width and height of an image with JavaScript? (in Safari/Chrome)
- Submitting a form on ‘Enter’ with jQuery?
- How do you handle oncut, oncopy, and onpaste in jQuery?
- jQuery get the location of an element relative to window
- Webkit and jQuery draggable jumping
- jQuery multiply vars inside value [duplicate]
- How to add class to div based on radio button selected in it?
- How to disable browser reload button on mouse click
- How to import jquery using ES6 syntax?
- How to count the number of occurrences of each item in an array? [duplicate]
- How do I check if string contains substring? [duplicate]
- Why use jQuery on() instead of click()
- Can jQuery provide the tag name?
- Preventing click event with jQuery drag and drop
- jQuery single selector vs .find()
- Load image with jQuery and append it to the DOM
- Where is jQuery.data() stored?
- How to dynamically modify in materialize css framework
- jQuery: Toggling between 3 classes (initially)
- Converting a recursive function into an asynchronous CPS implementation (javascript)
- How to read line by line of a text area HTML tag
- Capture event onclose browser
- jQuery won’t parse xml with nodes called option
- Looping through jQuery Deferreds after all promises have been called
- Countdown timer using Moment js
- Proper way to detect WebGL support?
- Hour difference between two times(HH:MM:SS a)in momentjs
- jQuery: Change element type from hidden to input
- How to Scroll Down – JQuery
- CSS and JQuery: spaces inside image name break code of url()