Anyone have any idea how to set a button to work for one input separately instead of for the first input it is assigned to. When I call a skillup() when clicked I want it to change just that input with the same function name instead of a new function name for every button. #javascript #programming
@techki a basic solution would just have the onclick handler call skillUp('lvl') or whatever id of the input you want to modify
@yads so use an id for individual and a class for multiple. Thank you!

@techki yes, but like I said this is a very basic solution. There are a whole bunch of ways to solve this problem. Here are a couple more to investigate once you get more comfortable with web development

1. Using data-* attributes instead of ids
2. Using DOM tree navigation to find the sibling input to the button that triggered the event

@techki look into event delegation!