Is it possible to take a query from a database that will grab all values from a given vaule i.e query = Table.objects.filter(x=y) send it to HTML like so:
<table>
    <tr>
        <th>Value 1</th>
        <th>Value 2</th>
        <th>Value 3</th>
    </tr>
    {% for value in query %}
    <tr>
        <td>{{ value.val1 }}</td>
        <td>{{ value.val2 }}</td>
        <td>{{ value.val2 }}</td>
    </tr>
    {% endfor %}
</table>
Lets say the query returns 3 objects. That means the table will have 3 rows of data but in HTML all the <td> tags are the same. How can I identify  each <td> per row so that I can manipulate the data and save it back to the database?
I have tried with jquery, but I am only able to manipulate the first row.
 
    