Я пытаюсь передать текст в слайдер изображений jquery, но я просто не знаю, как этого добиться. Ниже приведено представление «Дизайн»:
<script type="text/javascript">
//want to pass text to "desc:"sometext"
if (!window.slider) var slider = {};
slider.data = [{ "id": "slide-img-1", "client": "nature beauty", "desc":"" },
{ "id": "slide-img-2", "client": "nature beauty", "desc": "" },
{ "id": "slide-img-3", "client": "nature beauty", "desc": "" }];
<asp:Repeater ID="rptJquery" runat="server">
<ItemTemplate>
<a href="">
<img ID='<%#Eval("slideshowID") %>' src='<%#String.Format("../images/slideshow/{0}", Eval("imgURL"))%>' class="slide"/>
</a>
//want to pass this hidden field value to the above "desc" as there are three description
// for three images , there fore I want to pass specific description to all 3 images
<asp:HiddenField ID="desc" runat="server" Value='<%#Eval("slideDesc")%>' />
</ItemTemplate>
</asp:Repeater>