I have the following output.
<tr id='row_27' valign='top'>
...
...
<td width="5%"><a href="http://localhost/daikon2/index.php/projects/admin/delete_log/6/6/27" class="deleteme"><img src="http://localhost/daikon2/assets/icons/delete.png" alt="delete" title="Delete Log" /></a></td>
</tr>
I want to get the last segments 27 in the href with JavaScript.
I tried the following but nothing happened.
var id =href.substring(href.lastIndexOf("/") + 1);
alert (id);