<!DOCTYPE html>
<html>
<head>
<title>jQuery select() method</title>
<script src="jquery-latest.min.js"></script>
<script>
$(document).ready(function(){
$("input").select(function(){
$("span").text("Text Selected");
});
});
</script>
</head>
<body>
<p>Select below text</p>
Name: <input type="text" value="Christan Ronald" />
<span></span>
</body>
</html>