Which jQuery version are you using?
I had the same issue, it only happens when you are logged In and trying to test in the same browser you are logged in, just give it a try in another browser, if it keeps doing the same behavior then, I suggest you to use the code I used to avoid conflict of jQuery version:
<!-- jQuery from CDN -->
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script>
var $ = jQuery.noConflict();
</script>
<!-- ALL jQuery plugins goes here -->
<script src="http://cdn.jquerytools.org/1.2.7/all/jquery.tools.min.js"></script>
Use the code above on your master page or template you are invoking jQuery.