I need something like this:
<div>
<input type="text"></input>
<input type="hidden" name="attr1" value="true">
<input type="hidden" name="attr2" value="true">
<input type="hidden" name="attr3" value="false">
</div>
<div>
<input type="text"></input>
<input type="hidden" name="attr11" value="true">
<input type="hidden" name="attr22" value="true">
<input type="hidden" name="attr33" value="true">
</div>
I need to attach some extra non-standard attributes to each field. What is the best way to do this? How to realize above example? I can do this with custom template in django but it is unnecessary client-server communication.