Version 2.7.2 of DOMAssistant has just been released, and beside from some small improvements and minor tweaks, it has two new and very interesting methods.
The two new methods are:
triggerEvent method allows you to trigger an event on an element, like this:
Very handy! Also, as pointed out in the release blog post, the event doesn’t actually occur, but the event handler is called within the proper context.
replace method allows you to replace an existing element with a new one. The new element can be specified either through an element, string or number reference. For example:
$("container").replace("<div><em>Way</em> cooler content!</div>");
If the second parameter in the method call is set to true, it returns the new element; otherwise, the replace element is returned.
Downloading DOMAssistant 2.7.2