jquery script not working

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
2/19/2014 12:48:55 PM
Gravatar
Total Posts 63

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?

You must sign in to post in the forums. This thread is closed to new posts.