Response title
This is preview!
<html>
<head>
<script type="text/javascript">
$(function() {
$('#date').datepicker();
});
$(function() {
var availableTags = ["Christmas Day","etc"];
$("#tags").autocomplete({
source: availableTags
});
});
$('#date').change( function() {
if ($(this).val().substring(0, 5) === '12/25') {
$('#desc).val('Christmas');
} else {
$('#tags').val('');
}
});
</script>
<body>
<DIV class="ui-widget">Date: <INPUT TYPE="TEXT" name="xx"
property="xx" id="date" />
</P>
<input type="text" id="desc" name="desc" />
</DIV>
</body>
</html>
[/code]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Jquery test</title>
<script scr="jquery-1.3.2.min.js" type="text/javascript"></script>
<style type="text/css">
#box
{
background: red;
width: 300px;
height: 300px;
}
</style>
<script type="text/javascript">
$(function()
{
$('a').click(function()
{
$('#box').fadeOut(5000);
});
});
</script>
</head>
<body>
<div id="box"></div>
<a href="#">Click Me!</a>
</body>
</html>
© 2013 jQuery Foundation
Sponsored by and others.