mikeric / rivets

Lightweight and powerful data binding.

Home Page:http://rivetsjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to bind the change event of input using lastest rivets

rfrkk opened this issue · comments

commented

Consider an example:

<div>
<input type="text" id="number_1"/> x <input type="text" id="number_1"/> = <span id="total"></span>
</div>

When #number_1 textfield is filled in 5 and #number_2 textfield is filled in 2,then #total span will be show 10 automatically.
How to do this by rivets (0.9.6),Please display all the code,thanks very much.