Article View: pl.comp.lang.javascript
Article #51783Re: dlaczego firstChild oraz childNodes[0] mam undefined?
From: Jivanmukta
Date: Sat, 01 Apr 2017 05:16
Date: Sat, 01 Apr 2017 05:16
14 lines
1398 bytes
1398 bytes
Jivanmukta wrote:
> Problem zamknięty. Dzięki za pomoc.
Jeszcze coś mi nie działa. Nie rozumiem dlaczego kod:
<input type="text" name="client_mobile1" value="" id="client_mobile1"
maxlength="16" size="16" style="width: 16ex" class="mobile" >
p = document.getElementById("client_mobile1");
if (!p.hasOwnProperty("className")) alert(p.tagName + "#" + p.id + " has no
className");
wyświetla mi alerta: INPUT#client_mobile1 has no className. Używam FireFoxa,
ale chciałbym żeby mi działało pod wszystkimi popularnymi przeglądarkami.
Technical Details
Message-ID:
<obnd2s$117a$1@gioia.aioe.org>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!news.mixmin.net!aioe.org!.POSTED!not-for-mailReferences:
<oaaiu9$jmk$1@news.icm.edu.pl> <oaauv5$1i7t$1@csiph.com> <5d210841-ac34-4a0b-9981-9fe8d5e61d4c@googlegroups.com> <oam5le$19g0$1@gioia.aioe.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: Jivanmukta <jivanmukta@poczta.onet.pl> Newsgroups: pl.comp.lang.javascript Subject: Re: dlaczego firstChild oraz childNodes[0] mam undefined? Date: Sat, 01 Apr 2017 07:16:11 +0200 Organization: Aioe.org NNTP Server Lines: 14 Message-ID: <obnd2s$117a$1@gioia.aioe.org> References: <oaaiu9$jmk$1@news.icm.edu.pl> <oaauv5$1i7t$1@csiph.com> <5d210841-ac34-4a0b-9981-9fe8d5e61d4c@googlegroups.com> <oam5le$19g0$1@gioia.aioe.org> NNTP-Posting-Host: A/RiTBvd9YWfRGxhVbyAIw.user.gioia.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: KNode/4.14.2 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit