{"type":"rich","height":"190","author_name":"beniyama","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbeniyama.hatenablog.jp%2Fentry%2F2014%2F04%2F04%2F003541\" title=\"SVG \u8981\u7d20\u306e\u30af\u30e9\u30b9\u64cd\u4f5c\u306f addClass()/removeClass() \u3067\u306f\u306a\u304f attr() \u3067\u3002 - \u3079\u306b\u3084\u307e\u3076\u308d\u3050\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","version":"1.0","description":"\u30d0\u30fc\u30b8\u30e7\u30f3 : jQuery 1.11.0 \u4e0b\u306e fiddle \u306f SVG rect (\u8d64\u3044\u6b63\u65b9\u5f62\u306e) \u30af\u30e9\u30b9\u64cd\u4f5c\u306e\u4f8b\u3067\u3059\u3002 addClass() \u3092\u4f7f\u3046 $(\"#rect\").addClass(\"selected\"); \u3068\uff08\u30af\u30e9\u30b9\u3092\u4e0a\u66f8\u304f\u306e\u3067 addClass () \u3068\u7b49\u4fa1\u3067\u306f\u306a\u3044\u3067\u3059\u304c\uff09 attr() \u3092\u4f7f\u3046 $(\"#rect\").attr(\"class\", \"selected\"); \u3092\u305d\u308c\u305e\u308c\u547c\u3073\u307e\u3059\u304c\u3001addClass \u3092\u62bc\u3057\u3066\u3082\u4f55\u3082\u8d77\u304d\u307e\u305b\u3093\u3002 SVG \u8981\u7d20\u306e\u30af\u30e9\u30b9\u64cd\u4f5c\u306f javascript - jQuery SVG, why can't I addClass? - Stack O\u2026","url":"https://beniyama.hatenablog.jp/entry/2014/04/04/003541","blog_url":"https://beniyama.hatenablog.jp/","author_url":"https://blog.hatena.ne.jp/beniyama/","width":"100%","categories":["JavaScript","D3.js"],"blog_title":"\u3079\u306b\u3084\u307e\u3076\u308d\u3050","title":"SVG \u8981\u7d20\u306e\u30af\u30e9\u30b9\u64cd\u4f5c\u306f addClass()/removeClass() \u3067\u306f\u306a\u304f attr() \u3067\u3002","published":"2014-04-04 00:35:41","provider_url":"https://hatena.blog"}