My jQuery newsticker functions perfectly in jsFiddle, but when I transfer it to an HTML file, it mysteriously stops working. Despite keeping everything the same, it just doesn't work.
You can view the functioning version on jsFiddle here: http://jsfiddle.net/RXH6w/9/
$.noConflict();
jQuery( document ).ready(function( $ ) {
function NewsTickerAutoPlay() {
$(".NewsTicker li:first-child").slideUp(function () {
$(this).appendTo(".NewsTicker").fadeIn();
});
}
setInterval(function () {
NewsTickerAutoPlay()
}, 1000);
});
I've also included a link to the HTML file that contains the exact code from my jsFiddle:
Even though everything is identical, the script fails to work in my HTML. I'm hoping someone can help me identify what's causing this simple issue.