in my example http://jsfiddle.net/radek/HnXC4/2/ I defined jQuery handler for click
- on button
- that have a class run
via $(":button, .run").click(function(){
how come the this button should NOT work button’s clicked is fired too? It doesn’t have class “run”.
Try:
$(":button, .run")will match any elements that are either buttons or have a CSS class ofrun.