作者appleboy46 (小恶魔)
看板Ajax
标题Re: [问题] 将指定内容显示在 div !!
时间Wed Sep 16 22:25:05 2009
※ 引述《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
1F:推 chenshin0719:document.getElementById('xxx').innerHTML = xxx; 09/17 05:35