I have a side-menu with labels under it define the menu-items and are dynamically generated. When user-clicks on any item, following code must execute:
$("#label").click( function(event) ){
$.get(
"../../phplibraries/productlist.php",
{
ControlName: 'ulCategoryName',
Category: 'Beverages'
},
function(data) {
$('#divList').html(data);
});
});
I am not following how to capture click on any label that is actually a menu item.
**-- Edited --**
The HTML of side menu is as below:
以上就是Click on any label must execute JQuery function的详细内容,更多请关注web前端其它相关文章!