Re: [問題] web控制項去控制HTML控制項
※ 引述《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
討論串 (同標題文章)
Web_Design 近期熱門文章
PTT數位生活區 即時熱門文章