Moderator |
|
Je wilt dus inderdaad niet dat je formulier gesubmit wordt dus zul je JavaScript moeten gebruiken.rnrn[code]!DOCTYPE HTML PUBLIC -W3CDTD HTML 4.01 TransitionalENrnhtmlrnheadrntitlehtml templatetitlernmeta http-equiv=Content-Type content=texthtml; charset=iso-8859-1 rnstyle type=textcssrn!--rn--rnstylernscript language=JavaScript type=textjavascriptrn!--rnfunction addkop(sel, frm, elt) {rn voeg kop toern var nr = sel.options[sel.selectedIndex].value;rn document.forms[frm].elements[elt].value += h+nr+h+nr+;rn reset geselecteerde elementrn sel.selectedIndex = 0;rn}rn--rnscriptrnheadrnrnbodyrnform name=frm action=... method=postrnselect name=kop onChange=addkop(this, 'frm', 'txt');rnoption value=selecteeroptionrnoption value=1kop 1optionrnoption value=2kop 2optionrnoption value=3kop 3optionrnselectrnbr rntextarea name=txttextarearnformrnbodyrnhtml[code] |