作者danceric (蜥蝪)
看板Web_Design
标题Re: [问题] web控制项去控制HTML控制项
时间Mon May 1 00:21:18 2006
※ 引述《helpers (<帮助人>)》之铭言:
: ※ 引述《danceric (蜥蝪)》之铭言:
: : 现在我的问题是这样的
: : 我有一个WEB的button 叫他b button
: : 另外有一个HTML的button 这个叫h button好了
: : 我想做的是在网页刚load进来的时候h button是disable的
: : 但再按了b button後h button就变成可以用的
: : 这样该怎麽做呢?
: : 我没办法在程式中去控制h button
: : 请大家救救我吧~~@@
: <form name="form1">
: <input type="button" name="h" value=h disabled>
: <input type="button" name="b" value=b onclick="document.form1.h.disabled=false">
: </form>
这边我有一点问题耶~
因为我的b button是web控制项
<asp:imagebutton id="edit" tabIndex="10" runat="server"
ImageUrl="image/Edit.jpg" ToolTip="修改"
BorderStyle="Outset" BorderWidth="2px"></asp:imagebutton>
它在html里面是长这样的..
如果我在里面加上onclick="document.form1.h.disabled=false"
会有document非我档案中成员的错误~
这样该怎麽办才好~~@@?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 61.229.177.245