jquery - if this attribute value is enclosed in quotation marks the quotation marks must match error -
i trying design responsive image slider thumbnails. here code.
<div class="cycle-slideshow" data-cycle-timeout=0 data-cycle-pager="#pager2" data-cycle-pager-template="<span><img src={{firstchild.src}}/></span>" > <span class="cycle-pager"></span> <span class="cycle-prev">〈</span> <span class="cycle-next">〉</span> <img src="images/backgroundalternate.jpg" /> <img src="images/logout.jpg" /> <img src="images/backgroundalternate1.jpg" /> <img src="images/backgroundalternate2.jpg" /> <img src="images/backgroundalternate.jpg" /> </div>
while adding span tag attribute data-cycle-pager-template
, getting error
if attribute value enclosed in quotation marks quotation marks must match
why that? in advance.
add single quotes img src within attribute data-cycle-pager-template
, let value of firstchild.src
bind source without quotes:
<div class="cycle-slideshow" data-cycle-timeout=0 data-cycle-pager="#pager2" data-cycle-pager-template="<span><img src='{{firstchild.src}}'/></span>">
Comments
Post a Comment