Created
March 19, 2015 03:32
-
-
Save okuden-labo/d1b8e16548053b8611fa to your computer and use it in GitHub Desktop.
jQueryで置換
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 要素の中身を書き換え */ | |
$(document).ready(function() { | |
$('#my-id').replaceWith('<div>置換後の文字列</div>'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment