I find the following example very dirty syntax:
$(document).ready(function(){
alert("Document is ready")
$("a").click(function(){
alert("Clicked");
});
});
With all those ) and } I don't know if I'm coming or going.. Is there
an alternate syntax I can use? Do I *have* to use the "function()" all
the time or is there a different way? I've been away from JavaScript
for a long time but never seen anything like that :-)
If there's no way around it, does anybody know of a javascript
preprocessor that I could use a cleaner syntax while developing?
Thanks!