javascript - Get new value in Fuelux Spinbox change event -
i'm using fuelux spinbox 3.7.3
according docs: http://getfuelux.com/javascript.html#spinbox can handle change event through "changed.fu.spinbox". event fires 2 arguments: event , value, being value current value.
is possible new value? (or @ least know if increase or decrease). examined both arguments , find reference new value.
at time event fired, input still not updated , therefore cannot new value way..
in change event take action depending of increment or decrease.
any other approach appreciated
thanks
the changed.fu.spinbox
should return new value.
i visited nightly build server fuel ux , if open browser's console, should see change event returns new value, not old value. there bug causes changed event fire twice on first click of spinbox, after new value returned via value
parameter of event.
i recommend storing old value , comparing new value in order discover increase or decrease.
Comments
Post a Comment