I need to do checkbox list from dictionary, but I have to add optional text input to every option, something like this:
<li>
<label>
<input type="checkbox" value="{id}"> {name}
</label>
<input type="text">
</li>
Dictionary have looks like that:
<items>
<item>
<id/>
<name/>
</item>
</items>
I tried to make it with select but I can't put text input next to every item. I think I could do it with repeat but I dont know how to connect checkboxes(which are true/false only) with text inputs.
Aucun commentaire:
Enregistrer un commentaire