You can get the id of clicked element by using below line
var idOfElement=$(this).attr("id");
In the above code, you referenced jQuery multiple time so please use only minimized version. Otherwise it will make your site loading a bit slow.
<script src="~/Scripts/jquery-1.8.2.js"></script>
<script src="~/Scripts/jquery-1.8.2.min.js"></script>
Remove below line
<script src="~/Scripts/jquery-1.8.2.js"></script>