L
L
lavezzi12015-10-13 14:10:48
css
lavezzi1, 2015-10-13 14:10:48

Two buttons causing one action, why doesn't one of them work?

Hello.
The page has one modal window. His call hangs on two buttons, that is, when you click either on the first or on the second, this window should open. For reasons I do not understand, a window opens only by clicking on the button at the top of the page.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Anton Shamanov, 2015-10-13
@lavezzi1

Because you don't know how ID stands for

S
Sergey Goryachev, 2015-10-13
@webirus

Instead of id(#)button use class(.)button to make 2-3-4-5-...-100500 buttons work.

D
Dmitry Novikov, 2015-10-13
@dmitriy_novikov

id must be unique. two elements with the same id is a blunder.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question