I have a div as follows:
<div class="bubbly">
</div>
<script>
$('.bubbly').innerHTML=getCookie('adjective');
</script>
But the content in this div cannot be seen.
If i alert the cookie, i get the value in it.
But the div is not taking the value of cookie.
I want to have the contents of the cookie in this div.
If you want to use native DOM properties in a jquery object then do like this:
You can do the same all in jquery like this:
Also make sure to enclose your DOM manipulating code in a handler for the
DOM ready event, like this: