Skip to content

Instantly share code, notes, and snippets.

@kamichimo kamichimo/.html
Last active Aug 29, 2015

What would you like to do?
<!-- 置き換えたいimg要素のclassにreplace-noimgを指定する -->
<img class="replace-noimg" src="/library/images/step1.png" alt="">
jQuery(document).ready(function($) {
$('.replace-noimg').error(function() {
src: '/library/images/noimg.jpg', //デフォルト画像のURL
alt: 'no image'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.