error fixing and dropdowns no default to No Items
This commit is contained in:
parent
5015389ce0
commit
f03970d8a2
2 changed files with 19 additions and 19 deletions
20
index.html
20
index.html
|
@ -14,7 +14,7 @@
|
|||
<div class="center" style="grid-column:1;grid-row:1">
|
||||
<div>
|
||||
<label for="helmet-choice">Helmet:</label>
|
||||
<input list="helmet-items" id="helmet-choice" name="helmet-choice" />
|
||||
<input list="helmet-items" id="helmet-choice" name="helmet-choice" value="No Helmet"/>
|
||||
<datalist id="helmet-items">
|
||||
</datalist>
|
||||
</div>
|
||||
|
@ -23,13 +23,13 @@
|
|||
</div>
|
||||
<div>
|
||||
<label for="helmet-powder">Powdering:</label>
|
||||
<input type="text" id="helmet-powder" name="helmet-powder" />
|
||||
<input type="text" id="helmet-powder" name="helmet-powder"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="center" style="grid-column:2;grid-row:1">
|
||||
<div>
|
||||
<label for="chestplate-choice">Chestplate:</label>
|
||||
<input list="chestplate-items" id="chestplate-choice" name="chestplate-choice" />
|
||||
<input list="chestplate-items" id="chestplate-choice" name="chestplate-choice" value="No Chestplate" />
|
||||
<datalist id="chestplate-items">
|
||||
</datalist>
|
||||
</div>
|
||||
|
@ -44,7 +44,7 @@
|
|||
<div class="center" style="grid-column:3;grid-row:1">
|
||||
<div>
|
||||
<label for="leggings-choice">Leggings:</label>
|
||||
<input list="leggings-items" id="leggings-choice" name="leggings-choice" />
|
||||
<input list="leggings-items" id="leggings-choice" name="leggings-choice" value="No Leggings"/>
|
||||
<datalist id="leggings-items">
|
||||
</datalist>
|
||||
</div>
|
||||
|
@ -59,7 +59,7 @@
|
|||
<div class="center" style="grid-column:4;grid-row:1">
|
||||
<div id="boots">
|
||||
<label for="boots-choice">Boots:</label>
|
||||
<input list="boots-items" id="boots-choice" name="boots-choice" />
|
||||
<input list="boots-items" id="boots-choice" name="boots-choice" value="No Boots"/>
|
||||
<datalist id="boots-items">
|
||||
</datalist>
|
||||
</div>
|
||||
|
@ -73,31 +73,31 @@
|
|||
</div>
|
||||
<div class="center" style="grid-column:1;grid-row:2">
|
||||
<label for="ring1-choice">Ring 1:</label>
|
||||
<input list="ring1-items" id="ring1-choice" name="ring1-choice" />
|
||||
<input list="ring1-items" id="ring1-choice" name="ring1-choice" value="No Ring 1"/>
|
||||
<datalist id="ring1-items">
|
||||
</datalist>
|
||||
</div>
|
||||
<div class="center" style="grid-column:2;grid-row:2">
|
||||
<label for="ring2-choice">Ring 2:</label>
|
||||
<input list="ring2-items" id="ring2-choice" name="ring2-choice" />
|
||||
<input list="ring2-items" id="ring2-choice" name="ring2-choice" value="No Ring 2"/>
|
||||
<datalist id="ring2-items">
|
||||
</datalist>
|
||||
</div>
|
||||
<div class="center" style="grid-column:3;grid-row:2">
|
||||
<label for="bracelet-choice">Bracelet:</label>
|
||||
<input list="bracelet-items" id="bracelet-choice" name="bracelet-choice" />
|
||||
<input list="bracelet-items" id="bracelet-choice" name="bracelet-choice" value="No Bracelet"/>
|
||||
<datalist id="bracelet-items">
|
||||
</datalist>
|
||||
</div>
|
||||
<div class="center" style="grid-column:4;grid-row:2">
|
||||
<label for="necklace-choice">Necklace:</label>
|
||||
<input list="necklace-items" id="necklace-choice" name="necklace-choice" />
|
||||
<input list="necklace-items" id="necklace-choice" name="necklace-choice" value="No Leggings" />
|
||||
<datalist id="necklace-items">
|
||||
</datalist>
|
||||
</div>
|
||||
<div class="center" style="grid-column:1;grid-row:3">
|
||||
<label for="weapon-choice">Weapon:</label>
|
||||
<input list="weapon-items" id="weapon-choice" name="weapon-choice" />
|
||||
<input list="weapon-items" id="weapon-choice" name="weapon-choice" value="No Weapon"/>
|
||||
<datalist id="weapon-items">
|
||||
</datalist>
|
||||
</div>
|
||||
|
|
18
test.js
18
test.js
|
@ -199,19 +199,19 @@ function calculateBuild(){
|
|||
}
|
||||
|
||||
function resetFields(){
|
||||
document.getElementById("helmet-choice").value = "";
|
||||
document.getElementById("helmet-choice").value = "No Helmet";
|
||||
document.getElementById("helmet-powder").value = "";
|
||||
document.getElementById("chestplate-choice").value = "";
|
||||
document.getElementById("chestplate-choice").value = "No Chestplate";
|
||||
document.getElementById("chestplate-powder").value = "";
|
||||
document.getElementById("leggings-choice").value = "";
|
||||
document.getElementById("leggings-choice").value = "No Leggings";
|
||||
document.getElementById("leggings-powder").value = "";
|
||||
document.getElementById("boots-choice").value = "";
|
||||
document.getElementById("boots-choice").value = "No Boots";
|
||||
document.getElementById("boots-powder").value = "";
|
||||
document.getElementById("ring1-choice").value = "";
|
||||
document.getElementById("ring2-choice").value = "";
|
||||
document.getElementById("bracelet-choice").value = "";
|
||||
document.getElementById("necklace-choice").value = "";
|
||||
document.getElementById("weapon-choice").value = "";
|
||||
document.getElementById("ring1-choice").value = "No Ring 1";
|
||||
document.getElementById("ring2-choice").value = "No Ring 2";
|
||||
document.getElementById("bracelet-choice").value = "No Bracelet";
|
||||
document.getElementById("necklace-choice").value = "No Necklace";
|
||||
document.getElementById("weapon-choice").value = "No Weapon";
|
||||
document.getElementById("weapon-powder").value = "";
|
||||
document.getElementById("str-skp").value = "";
|
||||
document.getElementById("dex-skp").value = "";
|
||||
|
|
Loading…
Reference in a new issue