I'm using the new Jquery .link() plugin (http://api.jquery.com/link/), to update the UI and form elements with the object property values and vice versa, whenever either the form or the object is updated.
This is all working except for the form elements, which should contain the result of the object's instance method but never gets updated.
I've put a button on the form to manually check the value of Discrepancy, and this works but the jquery link plugin is not populating the input elements automatically, although it is populating the input elements linked to the object properties. All elements have an id and name attributes.
Can anyone tell me where I'm going wrong?
this.InStock = 0;
this.Ordered = 0;