I am installing the following script in a JS file which contains many others for a WordPress blog. Could anyone point me in the direction of some tools to check for conflicts as this script doesn’t work when I place it in the site build. (It works fine by itself).
Thank you…
this.randomtip = function(){
var length = $("#message li").length;
var ran = Math.floor(Math.random()*length) + 1;
$("#message li:nth-child(" + ran + ")").show();
};
$(document).ready(function(){
randomtip();
});
try