Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

<script type="text/javascript">

function compute() {

Wiki Markup*&nbsp; &nbsp; &nbsp; &nbsp; var a =         var a = parseInt($('input\[name=amount1\]').val());* Wiki Markup*&nbsp; &nbsp; &nbsp; &nbsp; var b =

        var b = parseInt($('input\[name=amount2\]').val());*

        var total = a+b;

        $('#sum').val(a+b);

}

</script>

Wiki Markup<script type="text/javascript">
function compute() { &nbsp; &nbsp; &nbsp; &nbsp; var a = {
        var a = parseInt($('input\[name=amount1\]').val()); &nbsp; &nbsp; &nbsp; &nbsp; var b =
        var b = parseInt($('input\[name=amount2\]').val()); &nbsp; &nbsp; &nbsp; &nbsp; var total = a+b; &nbsp; &nbsp; &nbsp; &nbsp;
        var total = a+b;
        $('#sum').val(a+b);
}
</script !22-4-2014 6-50-46 PM.jpg|border=1!
Image Added