Article View: pl.comp.lang.javascript
Article #49274Re: Listowanie pól formularzy vs IE8
From: Mariusz Chwalba
Date: Tue, 01 Sep 2009 12:20
Date: Tue, 01 Sep 2009 12:20
17 lines
1247 bytes
1247 bytes
On Tue, 01 Sep 2009 13:13:25 +0200, rafian <ronin.rs@gmail.com> wrote: [...] > var id=document.forms[form].elements[el].id; > var obj=document.getElementById(id); Bez całości to zgadywanka ze szklaną kulą, ale nie chodzi Ci przypadkiem o: var obj = document.forms[form].elements[el]; var id = obj.id; Twój zapis może się wysypać gdy element do którego się dostajesz nie ma identyfikatora. pozdrawiam, -- Mariusz 'koder' Chwalba
Technical Details
Message-ID:
<op.uzku7rvya6rut4@koder>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-mailReferences:
<dd2f33d3-d0ea-46c6-a319-4909945c4870@o35g2000vbi.googlegroups.com>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: "Mariusz Chwalba" <mariusz@chwalba.net> Newsgroups: pl.comp.lang.javascript Subject: Re: Listowanie pól formularzy vs IE8 Date: Tue, 01 Sep 2009 14:20:05 +0200 Organization: unorganized Lines: 17 Message-ID: <op.uzku7rvya6rut4@koder> References: <dd2f33d3-d0ea-46c6-a319-4909945c4870@o35g2000vbi.googlegroups.com> NNTP-Posting-Host: 91.207.243.244 Mime-Version: 1.0 X-Trace: news.onet.pl 1251807603 31654 91.207.243.244 (1 Sep 2009 12:20:03 GMT) X-Complaints-To: niusy@onet.pl NNTP-Posting-Date: Tue, 1 Sep 2009 12:20:03 +0000 (UTC) User-Agent: Opera Mail/10.00 (Linux) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit