G
G
Gadzhimari Kachaev2014-08-13 23:02:37
JavaScript
Gadzhimari Kachaev, 2014-08-13 23:02:37

Why does form submit not work on iOS?

I have a form where the button is made via a div. So when you click the submit button on Android, everything works, but on iOS it does not respond to clicks. Here is the short code:

<form class="form-2" name="form-2" action="form-2.php" method="post" role="form">
    <div class="submit-btn" onclick="document.forms['form-2'].submit()">Оставить отзыв</div>
</form>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Petrov, 2014-08-14
@gadzhimari

Something like this is your view, but through the button codepen.io/cleric/pen/JCFhd
But JS needs to be completely rewritten.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question