I have the following on my html:
<input id="submitbutton" type="submit" />
Further down I then have:
<script type="text/coffeescript">
$('#submitbutton').click() ->
alert('hello')
</script>
Yet when I click the button the alert doesn't get triggered.
text/coffeescriptis understood? Anything in the error console? PS: you might want to look at the JavaScript version of your CoffeeScript, it doesn't say what you think it does.$('#submitbutton').click() -> alert('hello')gets turned into?$('#submitbutton').click -> alert('hello')should work.