Re: [問題] 請問表單radio的value如何抓text的內容?

看板Web_Design作者時間19年前 (2006/04/12 18:30), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/11 (看更多)
試試看下面的 <script type="text/javascript"> <!-- function abgne(){ alert(document.getElementById("r1").value); } function setValue(){ document.getElementById("r1").value = document.getElementById("t1").value; } //--> </script> <input type="radio" name="r1" id="r1" value="2006/04/12">2006/04/12 <input type="radio" name="r1" id="r2" onclick="document.getElementById('t2').disabled = '';">????/??/?? <input type="text" name="t1" id="t2" onblur="setValue();" disabled="false"> <input type="button" onclick="abgne();" value="查看????/??/??的value"> ※ 引述《piligo (pili)》之銘言: : 請教我的設計方向是有關日期的決定 : 設計兩個radio,一個radio是今天日期,另一個是人工填寫,為了人工填寫我在旁 : 邊放了一個text的表單,這樣的話我要如何把text所填的資料導入radio的value欄位 : 呢? : 表單後續動作是寫入資料庫,採用PHP+MySQL : 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 202.154.192.30 ※ 編輯: abgne 來自: 60.248.155.124 (04/12 20:38)
文章代碼(AID): #14FDR0uD (Web_Design)
討論串 (同標題文章)
文章代碼(AID): #14FDR0uD (Web_Design)