N
N
Nikita123452015-11-01 13:37:07
PHP
Nikita12345, 2015-11-01 13:37:07

Changing the form, depending on the content?

Good afternoon. How to implement the appearance of additional inputs, depending on the content of the previous ones? For example: the user selects citizenship, and if he is a citizen of his country - nothing happens, but if he is a citizen of another country - 1 more input appears, in which you need to enter, for example, migration card data

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Michael, 2015-11-01
@Nikita12345

Here is a working example
As erniesto77 wrote - listen to the change event and check the selected value, then decide what happens next.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question