I am using knockout.js plugin in my application. I have a problem with observable. I created an Example Fiddle. In this fiddle i am creating Menus dynamically and generating Menu sequence each time when new menu is added. User can to delete any existing menu also except first one.
The problem comes when user delete any existing menu. Because at the time of deletion i am updating the sequence number in the remove function but the sequence numbers are not updating.
Can anybody please tell me whats the problem ?
You are redefining the Sequence variable. Originally it is a ko.observable. You are setting it to a integer value. You should set the value as so
This will allow the observable to notify and update the value on screen.