-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Hi, I like this simple plugin.
So I just do
$('form').databind(data);
and all changes to the form are happily reflected in data.
But now I want to add a clear button for the form. If I clear the data fields, nothing is happening to the forms and if I clear the form fields nothing is happening to the data fields.
So how can I clear input1? I am not happy with my current workaround:
data.input1= "";
$('#input1').val("");
It is clear that without polling or Object.observe(), a simple change in the data object can not be reflected. But is there some kind of trigger, so that I can tell the plugin that data has changed?
A simple val() change of a form field is not enough to change data...
Can you give me some advice?
Thank you!
Metadata
Metadata
Assignees
Labels
No labels