All,
In Template condition check,whats wrong with the following code,
selected_id and selected_sub are equal to 5 but still ifequal loop is not working..
<tr><td><p>Subjects:</td>
<td>
<select id="subjects" name="subjects" multiple="multiple">
{% for subject in subjects %}
<option value="{{subject.id}}" {% for selected_id in selected_sub %}{% ifequal subject.id selected_id %} {{ selected }} {% endifequal %} {% endfor %} >{{subject.subject}}</option>
{% endfor %}
</select>
</p></td></tr>
Thanks..........