Warning: Trying to access array offset on null in /home/c6645833/public_html/monoxa.net/wp-content/themes/site/inc/mx-shortcodes.php on line 1947
- 📋
- 開発
jQueryでHTMLタグを置換する
作成日:
2016年10月9日
例として、ボタンをクリックしてulタグをolタグに置換しています。
でも、このままだとidやクラス名がキャンセルされてしまうので、事前にIDとクラス名を取得しておいて追加。
参考
Using jQuery to replace one tag with another - Stack Overflow
http://stackoverflow.com/questions/7093417/using-jquery-to-replace-one-tag-with-another

物草 灸太郎
WordPressでホームページを制作しつつ、休日は畑を耕したりDIYを楽しんでいます。
関連投稿
Loading...
コメントをどうぞ