Coming soon - Get a detailed view of why an account is flagged as spam!
view details
0
Getting value of html id tag in views?
Author Summary
MyMotivation is in Idaho
Post Body

How would I go about getting the id value of "{{task1.title}}" in my view?:

{% for tasks1 in tasks %}
        <tr>
        <td>{{tasks1.title}}</td>
        <td>{{tasks1.created_date}}</td>
        <td>{{tasks1.priority}}</td>
        <td><a href="{% url 'login' %}" name="tick_complete" id="{{tasks1.title}}">complete</a></td>
        </tr>
    {% endfor %}

This is for some jquery I want to use to update my model, just not sure how to go about getting that into my view.

Author
Account Strength
100%
Account Age
12 years
Verified Email
Yes
Verified Flair
No
Total Karma
14,533
Link Karma
10,604
Comment Karma
3,929
Profile updated: 1 day ago
Posts updated: 10 months ago

Subreddit

Post Details

Location
We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
9 years ago