|
出来るのだASP Q&A掲示板(過去LOG)
訪問数 52046
昨日 889
今日 776 【PR】 パソコン入門からIT専門書まで幅広く取り揃えています。セブン-イレブン受取り手数料無料のセブンアンドワイ。 |
Topに戻る
掲示板に戻る
検索
削除
管理者
|
| [1594] Re:onFocusイベント処理について |
| 投稿者:Tomitomiさん 2002/02/04 14:41:32 |
| こんにちは、Tomitomiです。 > 一つのフォーム上に > 2つのテキストボックス(name=textvalue) > 1つのhidden(name=test) > が配置してあります。 > > sub textvalue_onfocus(index) > test.value = index > end sub > > をしたいと思っています。この際に2つのテキストボックスのインデックス値を取る場合にはどのようにすればよいのでしょうか? 私の認識としては、多分コントロール配列は無理です。 とりあえず、私のいつもやる考え方と似てるのでサンプルとして、 <form method="POST" action="--WEBBOT-SELF--" name="F1"> <p>これがhiddenと仮想して<input type="text" name="test" size="20"><br> <br> <input type="text" name="T1" size="20" onfocus="document.F1.test.value='1';"><br> <input type="text" name="T2" size="20" onfocus="document.F1.test.value='2';"><br> <input type="text" name="T3" size="20" onfocus="document.F1.test.value='3';"><br> <input type="text" name="T4" size="20" onfocus="document.F1.test.value='4';"><br> <input type="text" name="T5" size="20" onfocus="document.F1.test.value='5';"><br> <input type="text" name="T6" size="20" onfocus="document.F1.test.value='6';"></p> <p><input type="submit" value="送信" name="B1"><input type="reset" value="リセット" name="B2"></p> </form> |
![]()
onFocusイベント処理について
はりさん
[2002/02/04 14:02:08]
[1593]
|
Re:onFocusイベント処理について
Tomitomiさん
[2002/02/04 14:41:32]
[1594]
Re:onFocusイベント処理について
はりさん
[2002/02/04 15:44:12]
[1595]
Re:onFocusイベント処理について
Tomitomiさん
[2002/02/04 16:31:02]
[1597]
Re:onFocusイベント処理について
はりさん
[2002/02/04 17:46:31]
[1598]
Re:onFocusイベント処理について
喜平さん
[2002/02/04 22:26:42]
[1600]
|
|
TreeBBS For ASP V.0.1.3 |