node.js - JQuery not working in JADE? -
i making simple slideshow site , seems jquery doesn't executed. here's code:
div#slideshow img(src="/images/img1.png") img(src="/images/img2.png") img(src="/images/img3.png") img(src="/images/img4.png") script(type='text/javascript'). $("#slideshow > div:gt(0)").hide(); setinterval(function() { $('#slideshow > div:first') .fadeout(1000) .next() .fadein(1000) .end() .appendto('#slideshow'); }, 3000); i'm running nodejs express
include jquery before <script>
script(src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js")
you may install locally , change path according to.. , whatever version depends upon you!
Comments
Post a Comment