I am trying to get the click event of a submit button on my form...
You have to encase your code in a function..
$('#submitDemo').click(function(){
alert("work darn it!!!!!!!!!!!!!!!!!!!!!!!!!")
//$("#list").block({ message: '
' })
});
But it is always a good practice to bind the event using on so that it attaches the event handler to the element when that is available.. So
$('#submitDemo').on('click',function(){
alert("work darn it!!!!!!!!!!!!!!!!!!!!!!!!!")
//$("#list").block({ message: '
' })
});