-
-
Recent Posts
Recent Comments
- caphun on Angular gotcha: ng-app=”myApp” (named applications)
- Melvina on Angular gotcha: ng-app=”myApp” (named applications)
- Get selected element's outer HTML | Easy jQuery | Free Popular Tips Tricks Plugins API Javascript and Themes on jQuery: outerHTML
- pacotole on jQuery: Textarea maxlength
- mani on How to get Fancybox 1.3.1 to stay put!
-
jQuery: outerHTML
The outerHTML property (IE only) could sometimes be very handy, especially if you’re trying to replace an element entirely. Brandon Aaron has very kindly given us a outerHTML plugin that does half the job as it doesn’t support replacements. The following code snippet fills in the blanks: jQuery.fn.outerHTML = function(s) { return (s) ? this.before(s).remove() […]