Javascript-форум (https://javascript.ru/forum/)
-   Элементы интерфейса (https://javascript.ru/forum/dom-window/)
-   -   Selecting fields from a list?. (https://javascript.ru/forum/dom-window/80318-selecting-fields-list.html)

iosman 21.05.2020 16:29

Selecting fields from a list?.
 
Hello,

There are fields!

01
<dl class="top">
02
<dt>
03
<label for="quest">Надо?</label>
04
</dt>
05
<dd>
06
<input type="checkbox" id="bb_d" name="chekk" class="input-checkbox" checked="" value="1">
07
</dd>
08
</dl>
09

10

11
<dl class="top">
12
<dt>
13
<label for="addr">Адрес</label>
14
</dt>
15
<dd>
16
<input type="text" id="addr" name="adddr" value="" class="input-text input-width-300">
17
</dd>
18
</dl>
19

20
<dl class="top">
21
<dt>
22
<label for="desc">Описание</label>
23
</dt>
24
<dd>
25. . .
<input type="text" id="desc" name="descript" value="" class="input-text input-width-300">
26
</dd>
27
</dl>


Below are 3 more similar fields, do they need to be replaced by a choice from the list, for example, form-1 and form-2, can this be done?
Another important point, if you filled out one form-1 and switched to another form-2, form-1 reset the field values.

thanks
iosman


Часовой пояс GMT +3, время: 02:56.