How to provide elements/tags dynamically inside the find() in jquery
<p>I have created several div with id's such as window1, window2 and so on. Now all I want to is find the <p> tag from these above created divs. I am doing this inside the for loop but it is not working for me. Here is what I am doing</p>

<pre><code>        for(connectWindow=1;connectWindow&lt;=xmlLength;connectWindow++)
        {

                //look for the to tag inside the html
                var windo = "window"+connectWindow;
                var to = "to"+connectWindow;
                alert("Making connections" + windo +to)
                //$("div#windo").find('strong#to')(function())
                $("div#windo").find('p#to').each(function(){
                    alert("@@@@@@@@@@@@@@@@@@@@");
                    var name = $(this).text();
                    //display_function(name,country);
                    alert("Name is :::"+name);

                });
          }
</code></pre>

<p>Please let me know where I am going wrong. Also please let me know if there is any solution in JavaScript either.
Thanks !</p>
