<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Widget Factory - calculator
</title>
<link rel="stylesheet"
href="css/smoothness/jquery-ui-1.8.9.custom.css">
<link rel="stylesheet" href="css/jquery.ui.claculator.css">
</head>
<body>
<div id="calc">
</div>
<script src="development-bundle/jquery-1.4.4.js">
</script>
<script src="development-bundle/ui/jquery.ui.core.js">
</script>
<script
src="development-bundle/ui/jquery.ui.widget.js">
</script>
<script src="js/jquery.ui.calculator.js">
</script>
<script>
(function($) {
$("#calc").calculator({
autoShow: false,
show: function(e, ui) {
alert(e + ", " + $(ui).attr("id");
}
});
})(jQuery);
</script>
</body>
</html>
相关文章
- 04-28【jQuery UI 1.8 The User Interface Library for jQuery】.学习笔记.5.Accordion控件
- 04-28【jQuery UI 1.8 The User Interface Library for jQuery】.学习笔记.6.Dialog控件
- 04-28【jQuery UI 1.8 The User Interface Library for jQuery】.学习笔记.9.Progressbar控件
- 04-28【jQuery UI 1.8 The User Interface Library for jQuery】.学习笔记.1.CSS框架和其他功能
- 04-28【jQuery UI 1.8 The User Interface Library for jQuery】.学习笔记.10.Button 和 Autocomplete控件
- 04-28【jQuery UI 1.8 The User Interface Library for jQuery】.学习笔记.4.Tabs控件
- 04-28【jQuery UI 1.8 The User Interface Library for jQuery】.学习笔记.8.Datepicker控件
- 04-28【jQuery UI 1.8 The User Interface Library for jQuery】.学习笔记.2.更换主题
- 04-28【jQuery UI 1.8 The User Interface Library for jQuery】.学习笔记.3.创建控件
- 04-28【jQuery UI 1.8 The User Interface Library for jQuery】.学习笔记.7.Slider控件