Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > it.comp.lang.javascript > #7893
| Path | csiph.com!aioe.org!gothmog.csi.it!bofh.it!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | Alessandro Pellizzari <shuriken@amiran.it> |
| Newsgroups | it.comp.lang.javascript |
| Subject | Re: Aggiungere una option ad una select clonata |
| Date | 11 Jul 2015 16:00:07 GMT |
| Lines | 16 |
| Message-ID | <d0css7FcotoU1@mid.individual.net> (permalink) |
| References | <mnp7ce$skm$1@speranza.aioe.org> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| X-Trace | individual.net oH4u/oaRKx6zRJLD8dPMrQzPjrSbs15/oIq0gxVxEYCyjnPi8= |
| Cancel-Lock | sha1:czsPRXF5aJAj/ZGJafB7N1fc05Y= |
| User-Agent | Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) |
| Xref | aioe.org it.comp.lang.javascript:7893 |
Show key headers only | View raw
Il Fri, 10 Jul 2015 21:45:21 +0200, Puz740 ha scritto:
> sto clonando un div molto "pieno" di oggetti, tra questi, devo
> aggiungere ad una specifica select ('materiali') un nuova option, prima
> di fare il prepend nella nuova destinazione
Perché fare tu in javascript il lavoro che il browser può fare in nativo?
> $(cloned_form).find("*").each(function(index, element) {
> if (element.name) {
> if (element.name.indexOf("materiale") >= 0) {
$(cloned_form).find("select[name=materiale]")
.append('<option...')
;
Back to it.comp.lang.javascript | Previous | Next | Find similar
Re: Aggiungere una option ad una select clonata Alessandro Pellizzari <shuriken@amiran.it> - 2015-07-11 16:00 +0000
csiph-web