[Solved] Add line items based on quantity [closed]
Breaking down the problem: You need to parse the user input and manipulate the DOM accordingly First you need to do something like (you’d need to modify this to fit you case) : $(‘#someTextInputWithThisID’).change(function() { var textualValue = $(this).val(); var numericValue = parseInt(textualValue); if (!isNaN(numericValue)) modifyDOMWithNumber(numericValue); }) Where, in modifyDOMWithNumber you’d have your code to … Read more