Skip to content
This repository was archived by the owner on Jan 16, 2020. It is now read-only.

Commit c28a635

Browse files
committed
Update README with corrected documentation for triggering changes
1 parent 348a349 commit c28a635

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,17 @@ Sometimes it is desired that the target of a link reflect the source value immed
185185
<pre>
186186
$(source)
187187
.link(target)
188-
.find("#input1").trigger("change");
188+
.trigger("change");
189+
189190
alert(target.input1); // value
190191

191192
// or in reverse
192-
$(source).link(target);
193-
$(target).trigger("changeData", ["age", target.age]);
193+
$(source)
194+
.link(target);
195+
196+
$(target)
197+
.trigger("changeField");
198+
194199
alert($("[name=age]").val()); // target.age
195200
</pre>
196201

0 commit comments

Comments
 (0)