I created this code while i was on http://jsfiddle.net, after being satisfied with the working code i brought it over to Dreamweaver. i cant get the code to appear. Here's the code:HTML <script src="http://stackoverflow.com/questions/14574247/Java.js"></script>
<div id="one" style="display:none"> <p>Displays Items Here Until Selected Date.</p> </div> <div id="two" style="display:none"> <p>Selected Date</p> </div> Javascript window.setInterval(function() { var current = new Date(); var expiry = new Date("Date Here") if(current.getTime()>expiry.getTime()){ $('#one').hide(); $('#two').show(); }\[code\]}, 0000);$('#one').show(); </pre>\[/code\]I dont understand why it would show up in fiddle and not dreamweaver.
<div id="one" style="display:none"> <p>Displays Items Here Until Selected Date.</p> </div> <div id="two" style="display:none"> <p>Selected Date</p> </div> Javascript window.setInterval(function() { var current = new Date(); var expiry = new Date("Date Here") if(current.getTime()>expiry.getTime()){ $('#one').hide(); $('#two').show(); }\[code\]}, 0000);$('#one').show(); </pre>\[/code\]I dont understand why it would show up in fiddle and not dreamweaver.