A new type of .live() event
Hello.
I want propose a new "event" to .live().
See this case:
I'm using AJAX to load HTML, and for all .roundedBox I need apply in ajax.success:
- $('.roundedBox').css({borderRadius: 5});
I suggest any more intelligent:
- $('.roundedBox').live('all', function(){
- $(this).css({borderRadius: 5});
- });
- // Obs: the event "all" is only a bad-suggestion, is only for example
Or be: to ALL new .roundedBox (indepentends if it is from AJAX HTML content or not), will be applied this event-method.
Currently is possible do this in an easy form?
I really don't know. If yes, how? If not, it maybe can be a good idea.
Bye.