Good evening, tell me, you need to implement such a task, there are radio buttons. When you select a specific radiobuttona, a block appears with other radio buttons, and in this block, if you select another specific radio button, another block appears with the same radio buttons. There is a script that, according to the author, should perform such a task, help set up this script and write a structure for it.
$('input.ShowOrHide').click(function() { var checked = $("input.ShowOrHide:checked"); if (checked.length == 0) { var currentDiv = this.attr("class"); /* ΡΡΡ Π²ΡΠΎΠ΄Π΅ ΠΊΠ°ΠΊ ΡΠ°ΡΠΏΠ°ΡΡΠΈΡΡ ΠΊΠ»Π°ΡΡΡ Π½ΡΠΆΠ½ΠΎ ΠΈ Π½Π°ΠΉΡΠΈ ΠΎΡΠ²Π΅ΡΠ°ΡΡΠΈΠΉ Π·Π° ΡΠ²ΡΠ·ΡΡΡΠΈΠΉ Ρ Π΄ΠΈΠ²ΠΎΠΌ. ΠΡΠ΅ ΠΊΠ»Π°ΡΡΡ Π΄Π»Ρ js ΡΠ΄ΠΎΠ±Π½ΠΎ ΠΈΠΌΠ΅Π½Π½ΠΎΠ²Π°ΡΡ "ΠΈΠΌΡ_js"*/ var getCurrentClass = ΠΈΠΌΡ_js_1 /*ΡΠ°ΡΠΏΠ°ΡΡΠΈΡΡ ΠΏΠΎΠ»ΡΡΠΈΡΡ ΠΊΠ»Π°ΡΡ ΡΠΊΠ°Π·ΡΠ²Π°ΡΡΠΈΠΉ Π½Π° Π½ΡΠΆΠ½ΡΠΉ Π΄ΠΈΠ²(ΠΈΠΌΡ_js ΠΈ Π΄ΠΈΠ² 1)*/ var findDiv = "div.+currentDiv"; $(findDiv).show(); } else { $("div.ShowOrHide").hide(); $('div#' + $(this).val()).show(); } });