🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.lang.java
Article #19630

Javascript 除了可以查?(下拉表?)的 value外,??可不可以查??容?

#19630
From: ???????J
Date: Wed, 31 Dec 2003 03:24
19 lines
1622 bytes
Javascript ���˿��Բ�?(������?)�� value�⣬??�ɲ����Բ�??�ݣ�

��������ӿ��԰�?��($answer)�õ�menu1��??��valueֵ��
������??��һ?����?��һ?��valueֵ��1������$answer��1��
�������������javascript�õ�ABC???�ϣ�??��ʲ?ָ�����������
e.g.
<script>
function this() {
  $answer = document.form1.menu1.value;
}
</script>
<form name="form1" method="post" action="">
<select name="menu1" onChange="this();">
  <option value=1>ABC</option>
  <option value=2>DEF</option>
  <option value=3>GHI</option>
  <option value=4>JKL</option>
</select>
</form>
Technical Details
Message-ID: <ed1b12b4.0312301924.3640ec9e@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: f6cb0,785ba167752e212c,start
X-Google-Attributes: gidf6cb0,public
X-Google-ArrivalTime: 2003-12-30 19:24:44 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: andrew@tophk.net (???????J)
Newsgroups: cn.bbs.comp.lang.java
Subject: Javascript 除了可以查?(下拉表?)的 value外,??可不可以查??容?
Date: 30 Dec 2003 19:24:43 -0800
Organization: http://groups.google.com
Lines: 19
Message-ID: <ed1b12b4.0312301924.3640ec9e@posting.google.com>
NNTP-Posting-Host: 219.133.27.70
Content-Type: text/plain; charset=GB2312
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1072841084 14389 127.0.0.1 (31 Dec 2003 03:24:44 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 31 Dec 2003 03:24:44 +0000 (UTC)