jquery - Why does the site add code to my index at run-time -


i have problem website. problem site adds code index file when running it.

this code in index file:

for(i = 0; < game.length; i++){                     $('.games').append('<div class="slide304"><div class="center"><div id="gameticker'+ +'"></div></div></div');             } 

but @ runtime code becomes this:

for(i = 0; < game.length; i++){                     $('.games').append('<div class="slide304"><div class="center"><div id="gameticker'+ +'"></div></div></div');> + h + ":" + m; 

as can see adds > + h + ":" + m; @ end of jquery. problem because site can't run due syntax error "unexpected token >"

does know why adds code @ end of code , how prevent it?

you missing closing > of last div in .append():

$('.games').append('<div class="slide304"><div class="center"><div id="gameticker'+                      +'"></div></div></div');      //----here have missing > ------^ 

Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -