<td style="width:10px;">
<input type="hidden" name="ID{{ forloop.counter }}" value="{{ item.id }}">
<span>
<a href="{{ return }}{{ sem_id }}/{{ item.id }}/delete/"
onclick="return confirm('Are you sure you want to delete?');">
<i class="fas fa-trash" style="color:red; font-size: 25px;"></i>
</a>
</span>
</td>
Here confirm pop-up is coming with the question but when we cancel its going to the delete link and deleting the data. can u help me to do this (on cancel - go back)