12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <!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>
- <title></title>
- <link href="../../lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <script src="../../lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
- <script src="../../lib/ligerUI/js/core/base.js" type="text/javascript"></script>
- <script src="../../lib/ligerUI/js/plugins/ligerTextBox.js" type="text/javascript"></script>
- <script type="text/javascript">
- var manager;
- $(function ()
- {
- manager = $("#r").ligerTextBox({ disabled: true });
- manager.bind('ChangeValue', function (value)
- {
- alert('绑定事件1:' + value);
- });
- manager.bind('ChangeValue', function (value)
- {
- alert('绑定事件2:' + value);
- });
- $("#btnSet").bind('click', function ()
- {
- manager.setValue(44);
- });
- $("#btnGet").bind('click', function ()
- {
- alert(manager.getValue());
- });
- $("#btnDisabled").bind('click', function ()
- {
- manager.setDisabled();
- });
- $("#btnEnabled").bind('click', function ()
- {
- manager.setEnabled();
- });
- });
- </script>
- </head>
- <body style="padding:10px">
- <input type="text" id="r" ligerui="width:500" />
- <input type="button" id="btnSet" value="设置值" />
- <input type="button" id="btnGet" value="获取值" />
- <input type="button" id="btnDisabled" value="设置只读" />
- <input type="button" id="btnEnabled" value="取消只读" />
- <div style="display:none;">
- </div>
- </body>
- </html>
|