🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.javascript
Article #50224

Re: czemu to nie działa pod firefox

#50224
From: A.L.E.C
Date: Thu, 26 Aug 2010 10:36
27 lines
1577 bytes
On 25.08.2010 16:19, pytajnik wrote:

> function odkryj_ukryj(sel,id1,id2)
> {
> 	if(sel.value=='true')
> 		id1.style.display='';
> 	else
> 	{
> 		id1.style.display='none';
> 		id2.value='';
> 	}
> }
> 
> i dwa elementy formularza
> SELECT:
> 
> <select id="li" name="l" onChange="odkryj_ukryj(li,li_nr,li_nr_val);">
>    <option value="false" selected>nie</option>
>    <option value="true">tak</option>
> </select>

SELECT nie ma właściwości "value", ma za to "options" i "selectedIndex".

-- 
Aleksander 'A.L.E.C' Machniak http://alec.pl gg:2275252
LAN Management System Developer http://lms.org.pl
Roundcube Webmail Developer http://roundcube.net
Technical Details
Message-ID: <i55g46$gfd$1@news.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!not-for-mail
References: <63df.000000de.4c752656@newsgate.onet.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!not-for-mail
From: "A.L.E.C" <alec1@poczta.onet.pl>
Newsgroups: pl.comp.lang.javascript
Subject: Re: czemu to nie działa pod firefox
Date: Thu, 26 Aug 2010 12:36:57 +0200
Organization: http://onet.pl
Lines: 27
Message-ID: <i55g46$gfd$1@news.onet.pl>
References: <63df.000000de.4c752656@newsgate.onet.pl>
NNTP-Posting-Host: alec.altec.pl
Mime-Version: 1.0
X-Trace: news.onet.pl 1282819014 16877 194.150.197.210 (26 Aug 2010 10:36:54 GMT)
X-Complaints-To: niusy@onet.pl
NNTP-Posting-Date: Thu, 26 Aug 2010 10:36:54 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
In-Reply-To: <63df.000000de.4c752656@newsgate.onet.pl>
X-Enigmail-Version: 1.0.1
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit