I am using Angular JS - v1.0.3 with jQuery - 1.7.2 in my Ruby on Rails application.
I am having live and bind events in my JS files. The JS bindings are not happening properly.
jQuery(id).live("click", function(){ alert('test');});
If i define the event again in my chrome console, even then the binding does not happen. But if i do
jQuery(id).click(function(){ alert('test');});
Then the binding happens. Can anyone help me with what is wrong here?
The method .live() was deprecated as of jQuery 1.7 use .on() instead. http://api.jquery.com/live/