Answer the question
In order to leave comments, you need to log in
How to insert json into html?
i get json
[{
name: 'Текст1',
subm:['Текст2', 'Текст3']
}
]
<li class="inner-menu">
<div class="otd-menu sub-check" data-sub="true" data-pnd="1" data-otd="4">Текст1<i class="fas fa-plus"></i></div>
<div class="div-otd-menu check-sub">
<input name="search" value="Текст1" type="checkbox" class="checkbox-otd-none">
</div>
<ul class="hide-menu">
<li>
<div class="otd-menu">Текст2</div>
<div class="div-otd-menu">
<input value="Текст2" name="search" type="checkbox" class="checkbox-otd">
</div>
</li>
<li>
<div class="otd-menu">Текст3</div>
<div class="div-otd-menu">
<input value="Текст3" name="search" type="checkbox" class="checkbox-otd">
</div>
</li>
</ul>
[{
name: 'Текст1',
subm:['Текст2', 'Текст3']
},
{
name: 'Текст1',
subm:['Текст2', 'Текст3']
}
]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question