F
F
Frank_Sidebottom2018-03-09 13:39:21
JavaScript
Frank_Sidebottom, 2018-03-09 13:39:21

Input in Yandex form of payment?

Hey guys. There is a problem. I want the amount in the form to change depending on the selected services. For example, the buyer ordered some product (the standard price is set) and wants to use the extra. services clicks on the button and the amount in the form changes (the cost of additional services is added). Well, I think you understand. in general, the input in the form is somehow blocked and does not allow changing the value.

2200 as standard price. You click on the created button and it changes. I think it's clear what I want. I will be very grateful for your help.

I did this myself:


$('button').click(function(){
$(".input__control").val("2500");

});

zero sense

e1805823e34ea80038d52fdbb20855af.png
21cc0d44d4228423b65453fad496e79f.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2018-03-09
@webinar

Change the src of the iframe, not the input, as it is not editable in the iframe. There is a default-sum parameter. But it seems to me that this is a strange idea, you need to connect the Yandex checkout and work with its api.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question