@StormKing969Submitted about 3 years ago
I have a question about the custom percentage tip. For my code, I ended up using a form to input the custom tip value. The problem is that when the value is added, my JavaScript function (for the calculation) won't start until I click on the custom tip form again. Is there a way to do this process in one go? Or else what other way did you tackle that part?
Process :
- Click on the custom tip form to input value
- JavaScript function starts but the input value is 0 --- (want to skip this step)
- Move the cursor away from the custom tip form --- (want to skip this step)
- Move the cursor back to the custom tip form and click on it --- (want to skip this step)
- JavaScript function starts (takes inputted value)
Any feedback is welcomed and appreciated :)