-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for programmatically modified values? #11
Comments
Not sure I follow - the subject suggests there's a problem with |
@remy my apologies - fixed the title, forgot to save. Re: the jsfiddle above - wondering what I'm doing wrong or if this functionality is not implemented. I've got a few places where the input values are modified via jQuery et el but not seeing the binding update (no callback fired when changed etc). Cheers! -t |
I see a use case for that, when bind.js is used in a larger application, but you could still set the value programmatically in your example: Instead of |
Oh, I think I follow now. Are you expecting the bound object to update when you change the input using jQuery? If that's the case, I'm pretty sure you want to trigger a change event on the input element, since that's how bind.js is picking up the change. $('input.name').val('tyler').trigger('change'); |
@twanlass did that work? |
@remy - calling |
|
For example, why doesn't this work?
https://jsfiddle.net/k25zfbm7/
The text was updated successfully, but these errors were encountered: