I have a list built dynamically in django template:

<form>
<div id="ajax-response">
  <ul id="test-list">
{% for case in caseList %}
    <li id="listItem_{{case.id}}>
      <table><tbody>
          <tr>
            <td>{{case.subject}}</td>
            <td>
              <input id="button_{{case.id}}"
                        type="image"
                        src="{{MEDIA_URL}}/icon.gif"
                        name="submit">
            </td>
          </tr>
      </tbody></table>
    </li>
{% endfor %}
  </ul>
</div>
</form>

I want JQuery to respond to any one the submit buttons by sending a
GET request to the server and receiving an HTML result that replaces
the entire list into the DIV entry. Is there a way to do this?

I have only been able to find examples of code for a single submit
button. In my case, I need each button to have an image.

Thanks.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" 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/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to