how to create validation field input append on modal?

hello everyone i have created a form using modal that has append on its field. there are inputs such as “Bobot”(you can only input numbers), activities, and date.

what I want to do is to add validation if the user inputs a value other than a number (only in bobot fields). indeed I have prevent that using onkeypress but that can be tricked by pasting the value. for example we can copy paste data from excel (e.g. data is 45%).

this is link to the code CODE

i managed to make that validation for the field bobot1,, but not for the input field with append in bobot2.

sorry for bad explanation. thank you.