jquery/plugins.jquery.com — Issue #18: select two bugs
Author: 3990995
Created: 2012-01-08 06:56:13+00:00
State: open

1.dropdown list unshow
var iSelectHeight = ($('li',$ul).length)*($('li:first',$ul).height());//+1 else bug ff
iSelectHeight = (iSelectHeight == 0 ? ($('li',$ul).length * 24) : iSelectHeight);// add this code

2.select changed,but ui unchange.
//add this code
$('select.jqTransformHidden').live('change',function(){
var thiz = $(this);
var text = thiz.find('option:selected').text();
var ul = thiz.parents('div.jqTransformSelectWrapper:first ul');
ul.find('a').removeClass('selected');
ul.find('a:contains("' + text + '")').addClass('selected');
ul.prev().find('span').text(text);
});