javascript - Select a div within a while of divs -
How to choose a div between div set is the same class? These divs are taken from a database and have been shown using a mysql_fetch_array. Cause I want to use / edit the information contained in each of these divs.
Any kind of work is welcome: jquery, javascript, ..
Regards!
You can use the jQuery selector and / or function (and their derivatives Example: : First /
first () ,
: last /
.last () , ...) To select from the
div s index, if you are asking.
var thirdFooDiv = $ ("div.foo:eq (2)"); // third, first 0 is
Comments
Post a Comment