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