There is no such a thing like refs.name in you code. Console log it and see what you are getting. If you want to access ref with specific name you need to access it with refs[name]. Also, you need to add a observer for each name.
Thanks Maceik, i'll look at your approach again once i am free cus right now tbh i am not really getting what i am doing again cus i had to learn a lot two weeks ago
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Now I am observing for with refs.name but still getting that error
Now I am observing with refs.name but still getting that error
There is no such a thing like
refs.name
in you code. Console log it and see what you are getting. If you want to access ref with specific name you need to access it withrefs[name]
. Also, you need to add a observer for eachname
.Thanks Maceik, i'll look at your approach again once i am free cus right now tbh i am not really getting what i am doing again cus i had to learn a lot two weeks ago