Article View: pl.comp.lang.javascript
Article #51650Re: problem z formularzem
From: Cezary Tomczyk
Date: Mon, 07 Mar 2016 11:36
Date: Mon, 07 Mar 2016 11:36
20 lines
1544 bytes
1544 bytes
On 07/03/2016 10:55, Łukasz wrote:
> Problem rozwiązany, dziękuję za pomoc.
>
> Okazało się że:
> $('.modal-content').show().html(data);
>
> modal-content miałem kilka :/
>
> zmiana na:
> $('#konkretny_modal').show().html(data);
> rozwiązała sprawę.
W mojej opinii nie powinno się w ogóle używać CSS klas do identyfikacji
elementów w sposób jak wyżej, tj. $('.modal-content'). Wyłącznie
unikalne id. Jeśli już nie można "id" z jakiegoś powodu, to lepiej
atrybut data-*
--
Cezary Tomczyk
http://www.ctomczyk.pl/
Technical Details
Message-ID:
<8780e$56dd67ca$11a830fd$4334@nntpswitch.blueworldhosting.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!feeder.erje.net!2.us.feeder.erje.net!news.ripco.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!nntpswitch.blueworldhosting.com!not-for-mailReferences:
<nbfoiq$ulj$1@node2.news.atman.pl> <nbjmml$n3j$1@node2.news.atman.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!feeder.erje.net!2.us.feeder.erje.net!news.ripco.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!nntpswitch.blueworldhosting.com!not-for-mail Subject: Re: problem z formularzem Newsgroups: pl.comp.lang.javascript References: <nbfoiq$ulj$1@node2.news.atman.pl> <nbjmml$n3j$1@node2.news.atman.pl> From: Cezary Tomczyk <cezary.tomczyk@gmail.com> Date: Mon, 7 Mar 2016 11:36:41 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <nbjmml$n3j$1@node2.news.atman.pl> Message-ID: <8780e$56dd67ca$11a830fd$4334@nntpswitch.blueworldhosting.com> X-Complaints-To: abuse@blueworldhosting.com Organization: BWH Usenet NNTPSwitch-Cluster Lines: 20 NNTP-Posting-Date: Mon, 07 Mar 2016 06:36:42 -0500 X-Trace: 8780e56dd67cab40d955804334 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit