A
A
AlinaMoskaluk2021-10-01 20:08:39
iPhone
AlinaMoskaluk, 2021-10-01 20:08:39

On the iPhone, select displays several addresses, but you need 1 - How to fix it?

On an iPhone, several addresses are displayed in select, but you need 1
Namely, if you press MINSK or MOSCOW and FROM WAREHOUSE or TO WAREHOUSE
On androids, everything is ok and on computers
, this is how it should be:
61574064b576c858833186.png

And like this on iPhones:
6157407b71e66470133141.png

Link to the site - https:// testol.site/oformlenie-zakaza/

How to fix this? Help me please

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
inzeppelin, 2021-10-02
@inzeppelin

Sorry, but you have a very, very unsightly code there.

$("select[name=stock-2] option[value='г. Одинцово, ул. Баковская, дом 9']").hide();
$("select[name=stock-2] option[value='ул. Передовая 6 корпус 6']").show();
$('select[name="stock-2"]').val('ул. Передовая 6 корпус 6');

You are trying to hide from select with styles (display: none). So it won't work. At least in Safari on iOS and IE.
You need to physically remove an element from the list or make two different selects with addresses and show either the first or the second one, depending on the selected city.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question