I've a Page with 2 msDropDowns. After changing the value of the first list, I want to load the JSON Data for der 2nd list und alter the data.
$.ajax({
url: "http://foo.bar/data.json",
type: "POST",
data: {
article: produkt,
color: farbe,
size: groesse,
form: typ
}
}).done(function (data) {
var json = $.parseJSON(data);
$('#colors').msDropDown({
byJson:{
data: json.color,
name: 'color',
width: 220
}
}).data('dd');
In the documentation is no update-function :-(
So: How to alter the msDropDown List?
if $('#colors') you are using div then replace with