Hi All. I am faced with the problem of tying the events "mouseover" to the SVG elements. If I connect an event using .bind() method and specify the class as a selector for element, something like: $(".someclass").bind ("mouseover", function(e) {...}); - everything works fine, but only with the elements that are loaded along with the page. However, if I try to do the same with .live() to bind events to dynamically created elements - an event does not work, like specified an invalid selector. $(".someclass").live("mouseover", function(e) {...}); - so does not work, but works well: $("#someid").live("mouseover", function(e) {...});
In this regard, I have 2 questions: - Such conduct live() was conceived, or it will be fixed later? - How can I trigger an event without using the id element? p.s. forgive me for my english.