Re: [問題] web控制項去控制HTML控制項

看板Web_Design作者 (蜥蝪)時間19年前 (2006/05/01 00:17), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/5 (看更多)
※ 引述《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
文章代碼(AID): #14LEChk- (Web_Design)
文章代碼(AID): #14LEChk- (Web_Design)