gettext - get a char inside a span of a div -
<div id = "board_code"> <div> <span>r</span> <span>o</span> <span>w</span> <span>1</span> </div> <div> <span>r</span> <span>o</span> <span>w</span> <span>2</span> </div> </div>
i trying string '2' used comparison char { [ ( < ' "
i tried this:
alert($('#board_code > div').eq(1).eq(3).text(); output is: blank
when tried this:
alert($('#board_code > div').eq(1).eq(0).text(); output is: row2
$("span").last().text()
that work, i'm not sure if it's enough needs.
$("#board_code span").last().text()
that 1 might better.
Comments
Post a Comment