<select name="jobspec" id="jobspec">
{%for jobsp in jobspecs%}
{%ifequal jobsp.id jobtitle.jobspec_id %}
<option>{{jobsp.id}}</option>
{%endifequal%}
{%endfor%}
<option>-select-</option>
{%for jobspec in jobspecs%}
<option
value="{{jobspec.id}}">{{jobspec.jobspec_name}}</option>
{%endfor%}
</select>
I am trying to nest ifequal with for loop .my problem is i am not able
to get value of (jobsp.id) ie value of jobsp is not available in the
ifequal block is there any other way to do this..
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.