forum

Home / DeveloperSection / Forums / How to get the clicked menu details

How to get the clicked menu details

Anonymous User 1751 20-Jan-2015

i have jquery menu like

<ul id="fileMenu">
    <li>Refresh</li>
    <li>-</li>
    <li>Exit</li>
</ul>
<ul  id="editMenu">
    <li>Add</li>
    <li>Edit</li>
    <li>Delete</li>
</ul>

i got the way to get click event on child menu items like

  $('#fileMenu').on('click', 'li', function () {
            alert("Hello"); // Or make($(this)); if you still want that extra function
        });

But, how to find out the particular menu option, i.e user clicked on Open, Exit, Edit, delete etc...


Updated on 20-Jan-2015
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By