Thursday, 5 September 2013

what's wrong with my jquery multiple selector?

what's wrong with my jquery multiple selector?

I want to select a dynamical element which is num1 first, then find its ul
(id=myUl)
<div id="num1"></div> // dynamic
<ul id="myUl">
so I found its id (let's set it to currentNum) and had been converted into
the integer, but my expression did not work :
$("div#num" + currentNum + "myUl")
I think the semicolon is wrong placed

No comments:

Post a Comment