diff options
author | Serophos <thees79@googlemail.com> | 2011-05-05 01:03:20 -0700 |
---|---|---|
committer | Serophos <thees79@googlemail.com> | 2011-05-05 01:03:20 -0700 |
commit | 9585ccd1fdd2e63a2b1de6bd7acc7256ea74b65c (patch) | |
tree | 6c76925311287406651cf87c0de14075fd0e5546 /js/jquery.multi-select.js | |
parent | d0cc0913d10c708de4277ca55c9922844ad2dbfd (diff) | |
download | multi-select-9585ccd1fdd2e63a2b1de6bd7acc7256ea74b65c.zip multi-select-9585ccd1fdd2e63a2b1de6bd7acc7256ea74b65c.tar.gz multi-select-9585ccd1fdd2e63a2b1de6bd7acc7256ea74b65c.tar.bz2 |
copy title attribute from <option> Elements
Diffstat (limited to 'js/jquery.multi-select.js')
-rw-r--r-- | js/jquery.multi-select.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/jquery.multi-select.js b/js/jquery.multi-select.js index fbeec76..e898ac6 100644 --- a/js/jquery.multi-select.js +++ b/js/jquery.multi-select.js @@ -23,7 +23,7 @@ ms.data('settings', multiSelects.settings); ms.children('option').each(function(){ - var selectableLi = $('<li ms-value="'+$(this).val()+'">'+$(this).text()+'</li>').detach(); + var selectableLi = $('<li ms-value="'+$(this).val()+'" title="' + $(this).val('title') + '">'+$(this).text()+'</li>').detach(); selectableLi.click(function(){ ms.multiSelect('select', $(this).attr('ms-value')); |