Example 1 (embedded)
Here is an example, how to use calculator.js
to create an embedded calculator.
<div class="box">
</div>
<script type="text/javascript">
jQuery('#box1').calculator();
</script>
Example 2 (windowed)
Another example shows, how to create a calculator inside a draggable window with jQuery-ui.
<div class="box">
</div>
<script type="text/javascript">
jQuery('#box2').calculator().dialog({width: 310});
</script>
Click the button to open calculator in a jQuery-ui dialog.