• We just upgraded the platform on which this website runs! Please inform @Jaxel of any issues.

How to make elements update independently

1Life2Play

New member
I am working to build js file, but I'd like to have each element update independently if it has changed. For example, I want the player 1 score to change if I add one, but I don't want to reanimated the player 2 score since it didn't change.

Can someone throw a quick example for that. I can scale it out once I know the basics?

Thanks!
 

1Life2Play

New member
I figured it out.

I can call on the field element independently in the if statement. so instead of calling on #roster, I call on #player_1 directly and make a separate if function for each field to hide and unhide on change.
 

MrButterfly

New member
I figured it out.

I can call on the field element independently in the if statement. so instead of calling on #roster, I call on #player_1 directly and make a separate if function for each field to hide and unhide on change.
Could you show me what the code looks like please ?