Can JavaScript/jQuery make an element change automatically based on a variable?
Posted
by Gausie
on Stack Overflow
See other posts from Stack Overflow
or by Gausie
Published on 2010-03-13T14:37:48Z
Indexed on
2010/03/13
14:45 UTC
Read the original article
Hit count: 198
jQuery
|JavaScript
Hi all,
I have a variable that's being changed all the time in the course of my application. Can I make an element change (contents, colour, whatever), when the variable changes?
Or do I have to change the element each time I change the variable. Ideally, the result would almost be like binding a change event to the variable...
Thanks
Gausie
© Stack Overflow or respective owner