Friday, May 13, 2011

Monday, May 9, 2011

Dotted HR on IE7

From lasiman's comment in this article:
"REAL DOTTED without Image can be accomplished by:
border:0px; border-top:1px dotted #000000; height:0px;
works in all browsers..
have a good day.."

Monday, May 2, 2011

Getting outerHtml with jQuery

From Volomike and jessica's answers on http://stackoverflow.com/questions/2419749/jquery-get-selected-elements-outer-html:  use .clone() and .wrap() with .parent() and .html().  Here it is as an extension:

$(function() {
  $.fn.outerHTML = function() {
    return $(this).clone().wrap('<div></div>').parent().html();
  }
});

and use it like this:
  $("#myItem").outerHTML();