[Django]-How to create dynamic ids for tags in django templates

7👍

You can try something like this

<input id="input_{{ applicant.id }}" type="text" value="">
<input type="button" onclick="putTags('input_{{ applicant.id }}', {{ tags }});">

Leave a comment