Hjælp til at finde fejlen
Jeg kan ikke få nedenstående til at virke<script language="Javascript">
function opdatebasket(box1,box2){
var the_var = document.gehorig.box1.value;
var thesplit = the_var.split("*");
alert(thesplit[1]+" "+thesplit[0]);
}
</script>
</head>
<body>
<form name="gehorig">
<p align="center">TILBEHØR</p>
<p> </p>
<div align="center">
<center>
<table border="0" width="45%">
<tr>
<td width="2%"><img border="0" src="images/cdlommer.jpg" width="135" height="107"></td>
<td class=varestyle width="64%" valign="top" style="border: 1 solid #000000">
<p align="center">PLASTIKLOMMER<p>Artikel
<select size="1" name="art01">
<option selected>VÆLG ARTIKEL</option>
<option value="Vinylplader*100*3.50">Vinylplader ( Pris: DKK 3.50 )</option>
<option value="Singleplader*101*2.00">Singleplader ( Pris: DKK 2.00 )</option>
<option value="CD*102*1.75">CD ( Pris: DKK 1.75 )</option>
</select>
<br>
<br>
Antal <input type="text" name="ant01" size="6">
<a href="#" onclick="java script:opdatebasket(art01, ant01);"><img border="0" src="images/Læg_i_kurv.gif" width="83" height="21"></a>
</td>
</tr>
</table>
</center>
</div>
</form>
