Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 12:13

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Selectauswahl in Array speichern

Discussion on Selectauswahl in Array speichern within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
tobi9742's Avatar
 
elite*gold: 86
Join Date: Feb 2010
Posts: 505
Received Thanks: 94
Selectauswahl in Array speichern

Hallo,

wie kann ich die ausgewählte Option von mehreren Selectboxen in einem Array (spieler) speichern?
Hab es mit name="select[]" ausprobiert, array bleibt allerdings leer.
tobi9742 is offline  
Old 07/10/2012, 12:37   #2
 
PseudoPsycho's Avatar
 
elite*gold: 1715
Join Date: Dec 2011
Posts: 672
Received Thanks: 207
HTML Code:
function getArray(class) {
	var arr=[], e=document.getElementsByClassName(class);
	for(i=0; i<e; i++) {
		arr[]=e[i].value;
	}
return arr;
}
Ungetestet, müsste aber funktionieren.
Du musst dafür natürlich allen Elementen den selben Klassennamen (class="irgendwas") zuweisen.
PseudoPsycho is offline  
Reply


Similar Threads Similar Threads
Hilfe in Cinema 4d ? Datei Speichern mit transparentem hintergrund Speichern ?
09/29/2011 - elite*gold Trading - 10 Replies
^this. Melde euch bei mir, wenn es klappt, bekommt ihr bisschen egold.
Array
06/18/2011 - AutoIt - 0 Replies
Array Fehler Ich habe hier mal wieder einen Fehler den ich nicht beheben kann #include "WebTcp.au3" #include <Array.au3> #Include <File.au3> TCPStartup() _AutoITObject_Startup()
[Maps Speichern] Wie kann ich Maps speichern?
10/22/2009 - Metin2 Private Server - 37 Replies
Hey Com, ich wollte gern mal wissen, wie ich eine map speichern kann? Ich verstehe das hier nicht: http://img8.imageshack.us/img8/1862/33332332323325 5.jpg Was muss ich wo rein schreiben: Als Beisp. Wenn ich nun Map1 Rotes Reich wäre was müsste ich das rein schreiben damit die Map mit allen neuen zB NPC gespeichert wird?



All times are GMT +2. The time now is 12:13.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.