Hi Everyone,

How do i get the sum value of 2 drop down list and populate in onto "sum" fields? I am using community edition. 

I have tried using this code but still dont work. Can anyone help?

<script type="text/javascript">

function compute() {

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

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

        var total = a+b;

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

}

</script>

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