it making me crazy, i’m probably stupid 🙂
Go to this link : http://www.willbegood.com/lab/whatup/list2.php?categ=4
Why to this page return “1”, it should be return “4”.
There are 4 div whith the id equal to “liste-item”, why it return only 1?
My page is generated by a simple php query, is this the reason?
I have also tryed to test this with the same page but static (html) : same problem
Check here : http://www.willbegood.com/lab/whatup/list3.html
Thanks
You cannot duplicate ID. ID should be unique in a DOM and the jQuery selector would return only 1 which is the first element with
liste-item.Use class instead of ID.