Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>Basic CheckBox - jQuery EasyUI Demo</title>
- <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
- <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
- <link rel="stylesheet" type="text/css" href="../demo.css">
- <script type="text/javascript" src="../../jquery.min.js"></script>
- <script type="text/javascript" src="../../jquery.easyui.min.js"></script>
- </head>
- <body>
- <h2>Basic example of onChange events</h2>
- <form id="myForm">
- <div>
- <p id='chkCrit1'>
- </div>
- <p id='results'>
- </form>
- <script>
- $('#chkCrit1').checkbox({
- label: 'Mexxxicox:',
- value: '1',
- checked: false,
- onChange: function(checked){
- var textMessage = (checked)?'Tildado' :'Sin Tilde';
- $('#results').text(' El resultado es: ' + textMessage);
- }
- })
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement