It is necessary to make the corresponding div appear by clicking on the link. Here is the markup:
<div class="settings-line"> <p class="settings-label">ΠΠΌΡ</p> <a href="#" class="edit-settings">Π Π΅Π΄Π°ΠΊΡΠΈΡΠΎΠ²Π°ΡΡ</a> <div class="sett-drop"> <form action="/user/settings/change-fio" method="POST" ajax-form="Π£ΡΠΏΠ΅ΡΠ½ΠΎ ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΎ"> <div class="form-row"> <label>ΠΠΌΡ</label> <input type="text" class="t-inp" name="first_name"/> <div class="text-error"</div> </div> </div> </div> <div class="settings-line"> <p class="settings-label">Π€Π°ΠΌΠΈΠ»ΠΈΡ</p> <a href="#" class="edit-settings">Π Π΅Π΄Π°ΠΊΡΠΈΡΠΎΠ²Π°ΡΡ</a> <div class="sett-drop"> <form action="/user/settings/change-fio" method="POST" ajax-form="Π£ΡΠΏΠ΅ΡΠ½ΠΎ ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΎ"> <div class="form-row"> <label>Π€Π°ΠΌΠΈΠ»ΠΈΡ</label> <input type="text" class="t-inp" name="first_name"/> <div class="text-error"</div> </div> </div> </div> The intelligence was enough only for such a code, but in this case all the inputs appear at once
jQuery(".edit-settings").click(function () { if($('.sett-drop').is(":visible")){ $('.sett-drop').hide("fast"); }else { $('.sett-drop').show("fast"); }; }); How to make it so that when you click on a link to open exactly the div that you want? Assigning id not an option, since there are quite a lot of such blocks.