Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はhtml5が初めてです。ナビタグが付いています。左側にナビゲーションを配置して垂直分割を作成したいと思います。
ユーザーがナビゲーションのリンクをクリックすると、タグの右側にページが表示されます。
どうすればいいですか?
jQueryでは、次のようにします。
$("nav > a").click(function(){ var url = $(this).attr("href"); $("section#content").load(url); return false; });