From 611088835cadfb080d36337da5e88110de4e2859 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=BC=E5=BB=B6=E5=B9=B3?= Date: Wed, 14 Jan 2015 14:27:16 +0800 Subject: [PATCH] fix value type bug --- dropdown.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dropdown.js b/dropdown.js index 0ceb765..e59f485 100644 --- a/dropdown.js +++ b/dropdown.js @@ -378,6 +378,7 @@ $.fn.dropdown = function(parameters) { text = module.get.choiceText($choice, false), value = module.get.choiceValue($choice, text) ; + value = String(value); if( exactRegExp.test( text ) || exactRegExp.test( value ) ) { $results = $results.add($choice); } @@ -1600,4 +1601,4 @@ $.extend( $.easing, { }); -})( jQuery, window , document ); \ No newline at end of file +})( jQuery, window , document );