Creating new element /w LIVE event by passing object map. (1.4 style)
So, I read about the new method of passing an object map containing element properties when creating a new jQuery object (as discussed at the bottom of
this article). The article says that it supports ALL events, but only gives examples of simple events that require no parameters. I'm trying to implement a live event using the following and can't get it to work:
- var link = $('<a />', {
text: config.appendTextMore,
href: "#",
live: {
click: function(e)
{
//code
}
}
});
I tried formatting it a couple of different ways to no avail. Any idea how to do this?
Thanks!