I want to dynamically changed when the type is switched but I can’t use conditional statement like if-else or switch -case .
This is the code I have written
<html>
<head>
<title>Product add</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="PrAd">
<h2>
<b>Product Add</b>
<button class="button">Save</button>
</h2>
<hr>
</div>
<div class="form">
<form>
<label for="SKU">SKU</label>
<input type="text" id="formbox" name="SKU"><br>
<label for="Name ">Name</label>
<input type="text" id="formbox" name="Name"><br>
<label for="Price">Price</label>
<input type="number" id="formbox" name="Price"><br>
<label>Type Switcher</label>
<select id="type" name="product" onChange="prodType(this.value);">
<option value="">Choose Switcher</option>
<option value="Acme Disc">Acme Disc</option>
<option value="War and Peace">War and Peace</option>
<option value="Chair">Chair</option>
</select>
<div class="fieldbox" id="acme_disc_attributes">
<label>Size</label>
<input type="text" name="size" value="">
</div>
<div class="fieldbox" id="war_peace_attributes">
<label>Weight</label>
<input type="text" name="weight" value="">
</div>
<div class="fieldbox" id="chair_attributes">
<label>Length</label>
<input type="text" name="length"><br>
<label>Width</label>
<input type="text" name="width"><br>
</div>
</form>
</div>
```
`type or paste code here`
```
Is it possible to do this without conditional statement?