The extra parenthesis aren't needed around $('.layer'+count).text()
but it should work nevertheless. Are you absolutely sure you selector matches the element? You can test that by using alert($('.layer'+count).length)
, that would alert the amount of elements matched.
Tatu Ulmanen
2010-02-12 11:59:33