Article View: pl.comp.lang.javascript
Article #50418Re: pętla na obiekcie form
From: Peter May
Date: Fri, 03 Dec 2010 12:16
Date: Fri, 03 Dec 2010 12:16
19 lines
1350 bytes
1350 bytes
W dniu 2010-12-03 10:59, darco pisze:
> 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....
http://api.jquery.com/jQuery.each/
--
Peter
Technical Details
Message-ID:
<idan2k$fd7$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!.POSTED!not-for-mailReferences:
<e1be1c6c-4e90-43b3-aff6-acf57b27d1cb@v19g2000yqa.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!.POSTED!not-for-mail From: Peter May <peter.may@onet.pl> Newsgroups: pl.comp.lang.javascript Subject: Re: pętla na obiekcie form Date: Fri, 03 Dec 2010 13:16:12 +0100 Organization: http://onet.pl Lines: 19 Message-ID: <idan2k$fd7$1@news.onet.pl> References: <e1be1c6c-4e90-43b3-aff6-acf57b27d1cb@v19g2000yqa.googlegroups.com> NNTP-Posting-Host: uw210.internetdsl.tpnet.pl Mime-Version: 1.0 X-Trace: news.onet.pl 1291378580 15783 80.55.152.210 (3 Dec 2010 12:16:20 GMT) X-Complaints-To: niusy@onet.pl NNTP-Posting-Date: Fri, 3 Dec 2010 12:16:20 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; pl; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6 In-Reply-To: <e1be1c6c-4e90-43b3-aff6-acf57b27d1cb@v19g2000yqa.googlegroups.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit