Is it possible to pass the dynamic id with django input form
html generated by django form:
<tr>
<td>Email:</td><td><input id="id_email" type="text" name="email"
maxlength="100" /></td>
</tr>
<tr>
<td>User:</td><td><input id="id_user" type="text" name="user"
maxlength="100" /></td>
</tr>
I am using django form.If i see the id of the rendered field ,that is if
the field name is email,the id generated by django form in html is
id=id_email,if field name is user the id generated would be id_user .
My question is,Is any way is their to pass the dynamic id along with the
id generated by html,that is i am trying to do like this,for email field
{{object.id}}_email and so on.
Is it possible.
No comments:
Post a Comment