Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
How can I rewrite this in a simpler way using jQuery (this is coffeescript)?
How can aI rewrite this in a simpler way.?
$imageContainer = $($(this).parent().children()[0]).children()
currentIdx = 0
for e, idx in $imageContainer
if e.className.indexOf('active')
currentIdx = idx
break
How can rewrite this in a simpler way using jQuery (this is coffeescript)
How can a rewrite this in a simpler way.
$imageContainer = $($(this).parent().children()[0]).children()
currentIdx = 0
for e, idx in $imageContainer
if e.className.indexOf('active')
currentIdx = idx
break
How can I rewrite this in a simpler way using jQuery?
How can I rewrite this in a simpler way?
$imageContainer = $($(this).parent().children()[0]).children()
currentIdx = 0
for e, idx in $imageContainer
if e.className.indexOf('active')
currentIdx = idx
break
How can rewrite this in a simpler way using jQuery (this is coffeescript)
How can a rewrite this in a simpler way.
$imageContainer = $($(this).parent().children()[0]).children()
currentIdx = 0
for e, idx in $imageContainer
if e.className.indexOf('active')
currentIdx = idx
break