By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,188 Members | 844 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,188 IT Pros & Developers. It's quick & easy.

Can we use function in find..??

P: 6
Expand|Select|Wrap|Line Numbers
  1. $('div').find('.productInCart',function(){
  2. var menuId = $(this).attr("id").split("_")[1];
  3. if(windowWidth < 769) {
  4. $('#single_addon_'+menuId).hide();                        }else {                            $('#single_addon_'+menuId).show();
  5. }
  6. });
Can we use find in this way.
Oct 8 '14 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.