HTML (jquery.html)
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("input").select(function(){
$("input").after("Text selected ");
});
$("button").click(function(){
$("input").trigger("select");
});
});
</script>
</head>
<body>
<input type="text" name="FirstName" value="http://www.qwebsite.blogspot.com" />
<br />
<button>Highlight value http://www.qwebsite.blogspot.com</button>
</body>
</html>
Tidak ada komentar:
Posting Komentar
Leave a message