Reading a text inside div

i got div 5 /div

if the number inside div is larger than 10 = backgroundcolor red
if number smaller than 10 = color backgroundcolor green

but my question is how to read the 5 inside the div??

Welcome to the forums, @zouzi. It would be easier to help you figure this out if you could tell us how much JavaScript or any kind of web development experience you have.

wel i know about html and css but right now im learning about javascript wich is very new to me i just now a little bit becaus its a bit like c#, but thinking about a solution its very hard for me like i said java scrip is new, im here for things i dont understand and you know i dont want to put on a question on everything first im trying and if i dont know i ask. so only html and css

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.