Reputation: 80
Im looking for a way to replace an jquery path selector to a valid css selector.
I got my jquery selector like that
div>div:eq(0)>span>span:eq(3)>a>span { background-image:url('../bigData.png'); }
And i need something that i can write to my css file to get the style renderer.
Upvotes: 3
Views: 1729
Reputation: 388396
In this case I think you can opt for :nth-of-type
div>div:nth-of-type(1)>span>span:nth-of-type(4)>a>span { background-image:url('../bigData.png'); }
But there is no real equal method in css for jquery :eq()
Upvotes: 4