hi,
I have scenario
if the discount percentage is entered or the amount is >0 then the discount amount has to be calculated automatically else it has to accept the amount entered in the discount amount field
how to do it
i have done for automatic calculation but how to get the dynamic value entered in the discount amount field.
function update_discount()
{
jQuery('input[name="discamount"]:visible').val(
parseFloat(jQuery('input[name="totalamount"]:visible').val()) *
(parseFloat(jQuery('input[name="disc"]:visible').val()/100)
)
);
please help me
1 Answers
Your Answer