var sample = $('#sample p'); sample.replaceWith('<h1>sample</h1>'); $("table").prev("p").replaceWith(<h1>sample</h1>'); //テーブルの前のPタグを<h1>sample</h1>'に 投稿ナビゲーション jQuary 一度だけ実行されるクリックを設置するには Bootstrapを使ったレスポンシブを確認