efficicent way to write multiple jquery functions

I have multiple divs, and I have to write a code like this out for each div, and have php change the id by cycling through $NBR++; at the end. Is there a quicker way to write this once rather than to have this unique for each div? // when $NBR = 1
// when $NBR = 2
This goes on 15 times ...etc.....All php variable are set at the beginning of each div with PHP. So is there a way that I can 'compress' this into one code that could be written once? Or must it be written after each div? Thanks for your help!
If you need to explain / clarify please let me know.... These jquery codes are taking up too much space :/

以上就是efficicent way to write multiple jquery functions的详细内容,更多请关注web前端其它相关文章!

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

评论 抢沙发

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

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

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏