...
This is what the code should look like
Code Block | ||
---|---|---|
| ||
<style type="text/css">
.funky {
background-color: yellow;
}
</style>
<script type="text/javascript" src="${pageContext.request.contextPath}/decorators/jquery-1.7.1.js" />
<script type="text/javascript">
$(document).ready(function() {
// put all your jQuery goodness in here.
$("#myID").addClass("funky");
});
</script>
</head>
<body>
<p id="myID">Hello</p>
</body> |
References
Good Intro - http://www.catswhocode.com/blog/learning-jquery-the-basics