<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Tiêu đề</title>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<style>
input { width:200px;}
span {
    color:red;
    display:none;
}
</style>
<script>
$(function(){
    $('input').select(function(){
        $("span").css("display", "inline").fadeOut("slow");
    });
});
</script>
</head>

<body>
<input type="text" value="Chọn text này để thấy hiệu ứng" /><span>selecting</span></div>
</body>
</html>

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.