夠簡單了,我希望。我想,當我在jQuery的日期選擇器點擊日期以獲得股利淡入:語法使用與ONSELECT jQuery的日期選擇器
<!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script type="text/javascript" src="../datepicker/jquery.ui.core.js"></script>
<script type="text/javascript" src="../datepicker/jquery.ui.widget.js"></script>
<script type="text/javascript" src="../datepicker/jquery.ui.datepicker.js"></script>
<script>
$(document).ready(function() {
$('#datepicker').datepicker();
$('#datepicker').datepicker({
onSelect: function(dateText, inst) {
$('#foo').fadeIn();
});
});
});
</script>
</head>
<body style="font-size:62.5%;">
<p>Choose a date: <input id="datepicker" type="text"></p>
<div id="foo">FOO</div>
</body>
</html>
輝煌。感謝您的頭對風格了。 – Adam