[jQuery] evalScripts plugin

[jQuery] evalScripts plugin

I needed to be able to use $.get/$.post but still have the result's SCRIPT
blocks be evaluated, and apparently the code to do the evaluation is only
available as part of the .load() method, so it seemed like a good
candidate for a "plugin". So, I lifted it out - here it is:
$.fn.evalScripts = function() {
$("script", this).each(function(){
eval( this.text || this.textContent || this.innerHTML || "");
});
};
Usage:
$(expression).evalScripts();
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/