9
For example:
<div class="container">
<div class="position"></div> <!-- Essa tinha que ser position [0]-->
<div class="position"></div> <!-- Essa tinha que ser position [1]-->
<div class="other"></div>
<div class="position"></div> <!-- Essa tinha que ser position [2]-->
<div class="position"></div> <!-- Essa tinha que ser position [3]-->
<div class="other"></div>
<div class="position"></div> <!-- Essa tinha que ser position [4]-->
<div class="other"></div>
<div class="other"></div>
</div>
This done preferably with Jquery.
It is possible?
Sergio, for example, can add a . css() through his index. So, I want to add a background where the index is 4.. type $(".position"). index(4). css("background", "red"), type manipulate by its index()
– Jefferson Alison
@Jeffersonalison, yes. You can use it like this: jsFiddle -
$(".position").eq(4).css("background-color", "red");
– Sergio
@Jeffersonalison, and getting the two to interact: http://jsfiddle.net/u5m89/1/
– Sergio
A Refactoring à la Zuul for you: http://jsfiddle.net/LsD7k/1/
– bfavaretto
Hahaha :) I liked the " à la Zuul" @bfavaretto
– Sergio
Hahahaha, Zuulvaretto :)
– bfavaretto
Oops.. That’s right. It went right! Thank you!
– Jefferson Alison