Re: [問題] 將指定內容顯示在 div !!

看板Ajax作者 (小惡魔)時間14年前 (2009/09/16 22:25), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串2/2 (看更多)
※ 引述《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
document.getElementById('xxx').innerHTML = xxx;
09/17 05:35, 1F
文章代碼(AID): #1AiFL4QC (Ajax)
文章代碼(AID): #1AiFL4QC (Ajax)