L
L
LPSyndicate2019-07-31 14:18:08
JavaScript
LPSyndicate, 2019-07-31 14:18:08

Why does the js script not work on ios, but on android it works?

The website has this script:

$("input[id=tovarname").val( $(".nametovar").text() );
$("input[id=sum").val( $(".autocalc-product-price").text() );


Which takes data from certain fields and substitutes them into the inputs for the Yandex payment form. Money.
From PC everything works fine, as well as from android, but in iOS 12 it does not work and the data is not sent to the form. (There are no problems with iOS 13, oddly enough).

Tell me, how can I fix it so that it works from all devices?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tyzberd, 2019-07-31
@tyzberd

the square bracket is missing. And why write input[id=productname] if you can #productname

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question