diff --git a/select2-latest.html b/select2-latest.html index 623a37f9..41536643 100755 --- a/select2-latest.html +++ b/select2-latest.html @@ -1184,16 +1184,17 @@ $("#tags").select2({ - - - Example:
alert("Selected value is: "+$("#e8").select2("val")); $("#e8").select2("val", {id:"CA", text:"Califoria"});
+

val method invoked on a single-select with an unset value will return "", while a val method invoked on an empty multi-select will return []

+ + Example:
alert("Selected value is: "+$("#e8").select2("val")); $("#e8").select2("val", {id:"CA", text:"Califoria"});

data

Gets or sets the selection. Analogous to val method, but works with objects instead of ids.

+

data method invoked on a single-select with an unset value will return null, while a data method invoked on an empty multi-select will return []

diff --git a/select2-master b/select2-master index 3a830a2b..ad9fac45 160000 --- a/select2-master +++ b/select2-master @@ -1 +1 @@ -Subproject commit 3a830a2b81755bd0ba754defa4899cf164f13fc7 +Subproject commit ad9fac45aee04b3b91b186a539ceedb784ab242b