Note that there are some explanatory texts on larger screens.

plurals
  1. POUncaught SyntaxError: Unexpected reserved word
    primarykey
    data
    text
    <p>I have this code in JQUERY:</p> <pre><code>var large='&lt;div class="vip" style ="background:url(./uploads/deal/"+data[a].id+"_1.jpg);"&gt; &lt;span class ="coundtown" value ='+data[a].deal_time_off+' style ="display:none;"&gt;&lt;/span&gt; &lt;script&gt; $(document).ready(function(){ $('+data[a].deal_unique_id+').countdown({ date:'+data[a].deal_time_off+'}); }); &lt;/script&gt; &lt;div class = "deal_info clearfix"&gt; &lt;div class = "deal_subject clearfix"&gt; &lt;a href="./deal/'+data[a].deal_unique_id+'"&gt;adsfd&lt;/a&gt; &lt;/div&gt; &lt;div style = "clear:both"&gt;&lt;/div&gt; &lt;div class="timer"&gt; &lt;img class="img" src="./img/stopwatch.png" border="none" /&gt; &lt;span class ='+data[a].deal_unique_id+'&gt;&lt;/span&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="percent_mini"&gt;&lt;/div&gt; &lt;/div&gt;'; //$("#left_row").append(large); </code></pre> <p>But on this line:</p> <pre><code> &lt;span class ="coundtown" value ='+data[a].deal_time_off+' style ="display:none;"&gt; </code></pre> <p></p> <p>I get this error:</p> <blockquote> <p>Uncaught SyntaxError: Unexpected reserved word</p> </blockquote> <p>what is the problem?</p> <pre><code>var large='&lt;div class="vip" style ="background:url(http://mydeal.ge/uploads/deal/"+data[a].id+"_1.jpg);"&gt; &lt;span class ="coundtown" value ="'+data[a].deal_time_off+'" style ="display:none;"&gt;&lt;/span&gt; &lt;script&gt; $(document).ready(function(){ $("'+data[a].deal_unique_id+'").countdown({ date:"'+data[a].deal_time_off+'"}); }); &lt;/script&gt; &lt;div class = "deal_info clearfix"&gt; &lt;div class = "deal_subject clearfix"&gt; &lt;a href="http://mydeal.ge/deal/'+data[a].deal_unique_id+'"&gt;adsfd&lt;/a&gt; &lt;/div&gt; &lt;div style = "clear:both"&gt;&lt;/div&gt; &lt;div class="timer"&gt; &lt;img class="img" src="http://mydeal.ge/img/stopwatch.png" border="none" /&gt; &lt;span class ="'+data[a].deal_unique_id+'"&gt;&lt;/span&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="percent_mini"&gt;&lt;/div&gt; &lt;/div&gt;'; </code></pre> <p>i fixed this variable but still getting error</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload