New syntax and bootstrapping
New alternate but prettier syntax for remote version. Allows you to pass all settings as one hash. Also adds support for bootstrapping selects by passing JSON data in settings. Bootstrapping is used to avoid making the initial AJAX call.
$("#series").remoteChained({
parents : "#mark",
url : "/api/series.json",
bootstrap : {
"--" : "--",
"series-3" : "3 series",
"series-5" : "5 series",
"series-6" : "6 series",
"selected" : "series-3"
}
});
Add possibility to optionally send additional values of non chained inputs when using remote version.
$("#transmission").remoteChained({
parents: "#engine",
url: "/api/transmissions.json",
values: "#model"
});