I have this code I’m working on, see link:
The problem is depending on a elements class name (.no-submit or .btn) the click function should show a different alert message. Although this isnt working. Clearly I have missed something.
Would really appreciate it, if someone could help me shed some light on the matter. Thanks
Change your handlers in that way:
fiddle: http://jsfiddle.net/PqsAD/5/