Implement Two-way Data Binding in JavaScript
One of the fundamental features of modern JavaScript libraries and frameworks is data binding. The data binding features offered by them allows you to keep model and view in sync. Did you ever wondered how something similar can be implemented in plain JavaScript? If so this article shows you one such simple yet working implementation. Although simple implementation as discussed in this article is not intended to substitute what is offered by these libraries and frameworks, it will certainly give you a glimpse of how data binding might be implemented if needed.
http://www.binaryintellect.net/articles/e86f1949-dad7-434f-b086-387b9f0c4f7b.aspx