From 08103c81803f56e0a835b3c826ff61fa73244a22 Mon Sep 17 00:00:00 2001 From: Francesco Campana Date: Tue, 23 May 2017 12:45:49 +0200 Subject: [PATCH] Adds the trasform callback that create the option from key and value Can be used to modify the option. By default, the options can have just a value and a label, but in this way `data` properties can be added or we can apply other transformations. --- jquery.chained.remote.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/jquery.chained.remote.js b/jquery.chained.remote.js index 2cf5e06..b1f444a 100644 --- a/jquery.chained.remote.js +++ b/jquery.chained.remote.js @@ -105,7 +105,7 @@ if ("selected" === key) { selectedKey = value; } else { - var option = $("