call javascript in conditional statement

Questionscall javascript in conditional statement
paago asked 5 years ago

how can i call and pass value to javascript on conditional statment?

or

how can i call and pass value to php method on conditional statment?

2 Answers
Abu Ghufran answered 5 years ago

In conditional data, you can have a <a href> tag that passes your row value to other script.
you can use column placeholder {column-name}.

Refer demos/appr/conditional-data.php

germanmary answered 5 years ago

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

Your Answer

4 + 10 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?