N
N
NemoNab2015-09-26 08:14:49
PHP
NemoNab, 2015-09-26 08:14:49

How to leave two identical forms on one page?

There is a website with an order form based on such a script. By design, both forms should send the same data. One form hides in a modal window. here it also does not work, even using serialize(). Help me please!
Actually, the site itself: tsvet-nochi.ru

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim E, 2015-09-26
@NemoNab

The form uses IDs, replace with classes in html, css and js. Everything will work.
- if the element already has classes, add it separated by a space (class="class1 class2")
- remove the id
- in css and js, replace the pound sign (#) with a dot (.)

J
jlekapb, 2015-09-26
@jlekapb

By the way, you can not duplicate the form, but clone it by clicking

$.clone(true) // clone withDataAndEvents (default: false)
if using jquery.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question