Jag förstår inte hur de menar att storlekar och priser sparas. Har du nån slags databas?
Hursomhelst, jag slängde ihop det här. Funkar det tror du?
<html>
<head>
<title>Storleksändra</title>
<script>
function vaxlaPris() {
document.strForm.b.value = "En " + document.strForm.a[document.strForm.a.selectedIndex].text + " kostar " + document.strForm.a[document.strForm.a.selectedIndex].value + " tusen kr..." ;
}
</script>
</head>
<body>
<form name=strForm>
<select name=a onchange="vaxlaPris()">
<option value="10">M
<option value="20">L
<option value="30">XL
</selcet>
<input name=b type=text value="En M kostar 10 tusen kr">
</form>
</body>
</html>
