A
A
Alexey Goncharov2021-07-16 17:14:11
JavaScript
Alexey Goncharov, 2021-07-16 17:14:11

Why doesn't this jQuery script work on mobile devices?

Hello, I have this jquery script:

<script>$('#deleteCartIphoneCategory').attr('data-item-delete', '1');</script>


Why doesn't it work on phones (chrome android), and for some reason it doesn't work on iPhone (safari)(
It works on desktop. Tried adding type="text/javascript" didn't help.

How can I fix this? Thanks in advance for your help. I will be very grateful

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Spartak (Web-StyleStudio), 2021-07-16
@Spartak-2205

$('#deleteCartIphoneCategory').attr('data-item-delete', '1').data('item-delete', '1');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question