jquery script not working
I am trying to add a simple jquery script in a html content, but after I click update, the page shows "This webpage is not available" error in Google Chrome.
Here is the jquery script and html content:
<script type="type/javascript">
var sec = 2;
var timer = setInterval(function() {
$('#hideMsg span').text(sec--);
if (sec == -1) {
$('#hideMsg').fadeOut('fast');
clearInterval(timer); }
}, 1000);
</script>
<div id="hideMsg"> The entry you posted not valid. This Box will Close In <span>2</span> Seconds </div>
Am I missing something here?