attr(properties)の使い方



$("img").attr({
  src: "images/jQueryCheatSheet.png",
  alt: "Click to resize"
}).show();

<a><img width="360" height="240" /></a>