在asp.net中有这样一段动态html:
<asp:Repeater ID="ProductRepeater" runat="server">
            <ItemTemplate>
                <div id="listElement" class="list-body">
                    <div class="list-body-heading cyan">
                        <h3>
                            <sc:Text ID="ProductName" Field="Page Title" runat="server" />
                        </h3>
                    </div>
                </div>
            </ItemTemplate>
</asp:Repeater>运行以后的静态html如下:
<DIV id=listElement class=list-body>
  <DIV class="list-body-heading cyan">
    <H3>Advisor </H3>
  </DIV>
</DIV>试图用Jquery去改变div的样式,用$("listElement")可以成功,但是不知道为什么$("#listElement")或者$(".list-body")都是null。请指教,多谢!