get the value of the current ID in an list item
can any of you pls tell me how to get the value of the current ID out of
this list item. I have many list items which are generated by java
servlets so I need to get the current ID of the list (which is clicked):
so when i click:
$('li.doBlokkeer').hover(function(e) {
now I need the value of the id
<li class="doBlokkeer" id="${cell.id}"></li>
I think it is something like, but it doesnt work
var idblokkeer = document.getElementById('doBlokkeer');
var valueid = idblokkeer.getAttribute('id');
No comments:
Post a Comment