I have a css based menu, based on lists (ul and li elements). The clickable texts are embedded in those li elements. To have space in the dropdown menu those li elements define a large padding.
My problem is that those paddings are not clickable and I would like to make them so.
My first instinct was to give this menu as a whole an onclick function and then to sort it out that I when I clicked on a padding surrounding a link I should behave as if I clicked that link. Unfortunately when I catch the element with “onclick=menuhandle(this)” that ‘this’ leads to the menu as a whole and not to the specific button from the menu that I click.
Any suggestion would be welcome.