How to get particular href?
- <a onclick="return false;" target="_blank" href="15" id="accounting_send" class="glyphicons no-js book"><i></i></a>
- <a onclick="return false;" target="_blank" href="16" id="accounting_send" class="glyphicons no-js book"><i></i></a>
- <a onclick="return false;" target="_blank" href="17" id="accounting_send" class="glyphicons no-js book"><i></i></a>
- $("#accounting_send").click(function () {
- var docID = $(this).find("a[href]").attr('href');
- console.log(docID);
- });
So, this function gets only first href - 15. But when i click on every other a tag nothing is happen.
I want when i clicked on particular a tag to get his href value.
Thanks