Hallo Forum,
ich möchte aus mehreren Inputs ein Select entwerfen.
<input onmouseover="helpline('b')" accessKey="b" onclick="bbstyle(0, 'FWCMAIL', 'message')" type="button" value="B" name="addbbcode0">
<input onmouseover="helpline('i')" accessKey="i" onclick="bbstyle(2, 'FWCMAIL', 'message')" type="button" value="I" name="addbbcode2">
Mein Problem, wie kann ich von den einzelnen Optionen, den Wert onclick="bbstyle(0, 'FWCMAIL', 'message')" an das Select übergeben.
<SELECT>
<option onmouseover="helpline('b')" accessKey="b" onclick="bbstyle(0, 'FWCMAIL', 'message')" value="B" name="addbbcode0">B</option>
<option onmouseover="helpline('i')" accessKey="i" onclick="bbstyle(2, 'FWCMAIL', 'message')" value="I" name="addbbcode2">I</option>
</select>
Es tut sich nichts.
Füge ich vom ersten Input, das onlick in das Select:
<SELECT name="FWCMAIL" onclick="bbstyle(0, 'FWCMAIL', 'message')">
dann funzt der Befehl bbsyte0, für alle options die ich anklicke. Ich will aber dass er pro option einen anderen bbsytle abschickt.
Viele Grüße