I have a small script and it throws Unexpected token error on line 2 and firebug says missing : after property id $(‘#hubmeter’).click(function() {…}
$(document).ready({
$('#hmeter').click(function() {
alert("Handler for .click() called.");
});
});
html
<body>
<div id="hmeter">
<img src="meter.png"/>
</div>
</body>
You’re missing a
function ()in$(document).ready({.