bind works but live does not work for multiple events
Following code works.
- $('#container a').bind('click', function(e){
- log( $(this).text() + ' clicked1');
- return false;
- });
- $('#container a').bind('click', function(e){
- log( $(this).text() + ' clicked2');
- return false;
- });
However in the following case the message I get is : clicked1. No message from clicked2. Is this expected from live?
- $('#container a').live('click', function(e){
- log( $(this).text() + ' clicked1');
- return false;
- });
- $('#container a').live('click', function(e){
- log( $(this).text() + ' clicked2');
- return false;
- });