Click on any label must execute JQuery function

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前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » jQuery 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准