🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: problem z formularzem

#51645
From: Łukasz
Date: Sun, 06 Mar 2016 09:47
24 lines
1522 bytes
W dniu 06.03.2016 o 00:38, Cezary Tomczyk pisze:
> Zamiast inline event handlerów zrób to poprawnie:
>
> $('#btnSave').click(pliki_edytuj);
>
> https://jsfiddle.net/sygd9aa3/1/
>

Cześć.
Próbuję zrobić jak piszesz, czyli button wygląda tak:
<button type="button" id="12345" class="btn btn-primary">Dodaj / 
Zmień</button>

i do tego wywołanie:
<script type="text/javascript">
	$('#12345').click(pliki_edytuj);
</script>

Jednak funkcja pliki_edytuj nie jest wywoływana.
Co tu robię źle?

-- 
Pozdrawiam
Łukasz
Technical Details
Message-ID: <nbguak$dtb$1@node1.news.atman.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
References: <nbfoiq$ulj$1@node2.news.atman.pl> <affac$56db6ddc$520da86c$1156@nntpswitch.blueworldhosting.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From: Łukasz <lukaszWy@rostalskiTnijTo.pl>
Newsgroups: pl.comp.lang.javascript
Subject: Re: problem z formularzem
Date: Sun, 6 Mar 2016 10:47:00 +0100
Organization: ATMAN - ATM S.A.
Lines: 24
Message-ID: <nbguak$dtb$1@node1.news.atman.pl>
References: <nbfoiq$ulj$1@node2.news.atman.pl> <affac$56db6ddc$520da86c$1156@nntpswitch.blueworldhosting.com>
NNTP-Posting-Host: 94-40-64-237.hinet.pl
Mime-Version: 1.0
X-Trace: node1.news.atman.pl 1457257620 14251 94.40.64.237 (6 Mar 2016 09:47:00 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Sun, 6 Mar 2016 09:47:00 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0
In-Reply-To: <affac$56db6ddc$520da86c$1156@nntpswitch.blueworldhosting.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit