diff --git a/js/Weight Calculation Script-Edited-Jquery-V4.js b/js/Weight Calculation Script-Edited-Jquery-V4.js index f94bea2..ed41597 100644 --- a/js/Weight Calculation Script-Edited-Jquery-V4.js +++ b/js/Weight Calculation Script-Edited-Jquery-V4.js @@ -64,7 +64,16 @@ //Adds plates required if (weightToAdd > 0) { jQuery(".input-weightsneeded").eq(i).val(weightToAdd); + + //itterates through plates being added and saves html to string + for(var x = 0; x < weightToAdd; x++){ //instead of putting in a string and updating all at once. append the weights each time. Make function and append and then animate. Replace this block. + var platename = plateWeights[i]; + if (platename == 2.5) { + platename = '2half'; + } + weighthtml += ''; + } } //sets the offset