Re: [問題] 將指定內容顯示在 div !!
※ 引述《ppp168p (時光暫停)》之銘言:
: 大家好:
: 我目前的顯示版面如下 ,左邊是按鈕列,右邊是顯示的內容:
: 我顯示的地方是用 <div> </div> 所標記起來的區域
: 想要請問一下大家,怎樣子做出按下按鈕列之後就改變<div></div>
: 所括起來的部分 ..有什麼關鍵字可以搜尋嗎???
: ┌──┐┌─────────┐
: └──┘│ │
: ┌──┐│ │
: └──┘│ │
: │ │
: └─────────┘
jQuery 作法:
$("#register").click(function(){
$('#message').html('您的 html 語法');
});
<input type="button" id="register" value="點我" />
<div id="message">hi, I'm appleboy</div>
--
AppleBoy Blog: http://blog.wu-boy.com
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 115.43.9.56
推
09/17 05:35, , 1F
09/17 05:35, 1F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):