title: Trigger function only when var has been certain value for a certain amount of time in jQuery
body: <p>There is a var <code>i</code>, change value from <code>0</code> to <code>9</code> constantly and randomly; trigger function <code>A</code> only when <code>i==1</code> for 200 milliseconds. Wondering if there are any functions to work this out?</p>