trying to understand callbacks
Im new to js and jquery.
I have created some nice animations and stuff but I am stuck in one point.
Ive searched everywhere, checked every document and tutorial but I cant find where I am making the mistake.
why isnt this working?
- $(document).ready(function(){
- $('#startButton').click(function() {
- alert("wtf1"), (function() {
- alert("wtf2");
- });
- });
- });
the first function gets called but the wtf2 is never called.