Django templates onchange data

Posted by Hulk on Stack Overflow See other posts from Stack Overflow or by Hulk
Published on 2010-03-29T10:14:03Z Indexed on 2010/03/29 10:33 UTC
Read the original article Hit count: 666

In the following code, i have a drop down box and a multi select box.

My question is that using javascript and django .how will i changes the designation with changes in names from drop down box.

        <tr><td>
           name:</td><td><select id="name" name="name">{% for name in names %}
     <option value="{{name.id}}" {% for selected_id in names %}{% ifequal name.id selected_id %} {{ selected }} {% endifequal %} {% endfor %}>{{name.name}}</option>{% endfor %}
        </select>
        </td></tr>

        {% for desg in designation %}
        <tr><td><p>Topics:</td><td>  <select id="desg" name="desg" multiple="multiple">
        <option value="{{desg.id}}" >{{desg.desg}}</option>
        </select></p></td></tr>
        {% endfor %}

Thanks..

© Stack Overflow or respective owner

Related posts about django

Related posts about django-templates