How do I select text contents parent to add class list to it?
I am using this method to change the text content based on what the api value returned is.
It is being used in this mark up
I am trying to add a class list that will change its text color based on either what is returned or its new text content.
In the airQuality method is it possible to select the owner of the text content to use classList.add() to it?
https://github.com/bsupinski/weather_app
It is being used in this mark up
I am trying to add a class list that will change its text color based on either what is returned or its new text content.
In the airQuality method is it possible to select the owner of the text content to use classList.add() to it?
https://github.com/bsupinski/weather_app
GitHub
Contribute to bsupinski/weather_app development by creating an account on GitHub.
