🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

pętla na obiekcie form

#50417
From: darco
Date: Fri, 03 Dec 2010 09:59
13 lines
1369 bytes
W jaki sposób zamienić xObjForm.length na obsługę przez jQuery?
,gdzie xObjForm to obiekt formy

dla przykładu:
for (var i = 0; i < xObjForm.length; i++)
{
if ($(':input[type=text]'))
{
alert($(xObjForm[i]).attr("id"));
}
}

próbowałem $(xObjForm) ale nie działa....
Technical Details
Message-ID: <e1be1c6c-4e90-43b3-aff6-acf57b27d1cb@v19g2000yqa.googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.glorb.com!postnews.google.com!v19g2000yqa.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.glorb.com!postnews.google.com!v19g2000yqa.googlegroups.com!not-for-mail
From: darco <daro@jo.pl>
Newsgroups: pl.comp.lang.javascript
Subject: pętla na obiekcie form
Date: Fri, 3 Dec 2010 01:59:56 -0800 (PST)
Organization: http://groups.google.com
Lines: 13
Message-ID: <e1be1c6c-4e90-43b3-aff6-acf57b27d1cb@v19g2000yqa.googlegroups.com>
NNTP-Posting-Host: 91.209.221.221
Mime-Version: 1.0
X-Trace: posting.google.com 1291370396 22250 127.0.0.1 (3 Dec 2010 09:59:56 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 3 Dec 2010 09:59:56 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: v19g2000yqa.googlegroups.com; posting-host=91.209.221.221; posting-account=fENPvAoAAAAKjNOGj4lFL_pLKMg-zd8M
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; pl; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 ( .NET CLR 3.5.30729; .NET4.0E),gzip(gfe)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit