This is a migrated thread and some comments may be shown as answers.

When changing dropdown value there is error in console and model is not updated

2 Answers 28 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
ianc
Top achievements
Rank 1
ianc asked on 10 Jul 2014, 12:00 PM
Hi,
I have got problem with setting current value of selected dropdown value. 
Now when I am changing dropdown the error occurs "Uncaught TypeError: undefined is not a function"
and model is not updated. 
What is wrong with code ?
My problem is described by code available at  http://jsbin.com/ritor/

2 Answers, 1 is accepted

Sort by
0
ianc
Top achievements
Rank 1
answered on 10 Jul 2014, 12:03 PM
Propely formated link: 
http://jsbin.com/ritor/9/edit 
0
ianc
Top achievements
Rank 1
answered on 11 Jul 2014, 06:39 AM
Ok, problem solved here http://jsbin.com/deyuse/8/edit
I attached function to model :) 
Tags
MVVM
Asked by
ianc
Top achievements
Rank 1
Answers by
ianc
Top achievements
Rank 1
Share this question
or