pass element attr to initSelection for selects upon init
This commit is contained in:
parent
fccc84cd11
commit
98976946d6
@ -1612,7 +1612,7 @@
|
||||
var selected = element.find(":selected");
|
||||
// a single select box always has a value, no need to null check 'selected'
|
||||
if ($.isFunction(callback))
|
||||
callback({id: selected.attr("value"), text: selected.text()});
|
||||
callback({id: selected.attr("value"), text: selected.text(), element:selected});
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user