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">&#9001;</span>     <span class="cycle-next">&#9002;</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

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -