I found this component made it with jquery, My problem it’s that want to bind the click in the elements of the components which are a a element inside the div called menu to get the ID when are clicked. It doesn’t work and I don’t understand why. Could anybody see the problem??
Here’s my js
$(document).ready(initialize);
function initialize() {
$('#hierarchybreadcrumb').menu({
content: $('#menu').html(),
backLink: false
});
$('#menu a').bind('click',obtenerId);
}
function obtenerId(){
alert($(this).attr('id'));
}
Aaaaaand then you look at the console (for your
livedemo)