3 Replies Latest reply on May 6, 2013 1:17 PM by jbowden

    Selecting divs using JQuery in Edge Animate




      I'm trying to return the number of items on the stage in an alert.


      Inside of compostionReady of the Stage element i have the following code


      $(document).ready(function() {

          alert($("#Stage").length + " elements!");



      1 elements is returned in the alert but there are two divs on the stage


      I tried grouping the objects in one div then calling them like this


      $(document).ready(function() {

          alert($("#grpDivs").length + " elements!");



      This yeilds 0 elements


      I also tried this


      $(document).ready(function() {

          alert($("#Stage grpDivs").length + " elements!");



      zero was the same result


      I'm working thru a JQuery tutorial so im sure there's a subtle difference i'm missing