Google+

SelectBoxIt #

SelectBoxIt

http://gregfranko.com/jquery.selectBoxIt.js/

JavaScript, / : Select / 20.11.13 / [0]

dropdown.dot.js - select #

dropdown.dot.js -   select

http://rogerdudler.github.io/dropdown.dot.js/

JavaScript, / : dropdown, select / 06.08.13 / [0]

ddSlick - custom drop down with images and description #

ddSlick - custom drop down with images and description

.
http://designwithpc.com/Plugins/ddSlick

JavaScript, / : drop-down, select / 07.03.13 / [0]

jQuery coreUISelect - c select #

jQuery coreUISelect - c   select


JavaScript, / : select / 01.09.12 / [0]

Select2 3.0 #

Select2 3.0

Select2 jQuery . Select2 Chosen.
.

JavaScript, / : select, select / 20.08.12 / [0]

selectbox dimox #

selectbox  dimox




















.selectbox {
vertical-align: middle;
cursor: pointer;
}
.selectbox .select {
width: 185px;
height: 30px;
padding: 0 45px 0 10px;
font: 14px/30px Arial, Tahoma, sans-serif;
color: #333;
text-shadow: 1px 1px #FFF;
background: #f5f5f5 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAeCAIAAABi9+OQAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABdJREFUeNpi+v//PxM2zMDAQEtxgAADAF2uTe9L4getAAAAAElFTkSuQmCC) repeat-x;
border: 1px solid #ccc;
border-bottom-color: #b3b3b3;
border-radius: 4px;
box-shadow: inset 1px -1px #F1F1F1, inset -1px 0 #F1F1F1, 0 1px 2px rgba(0,0,0,0.1);
}
.selectbox .select:hover {
background-color: #E6E6E6;
background-position: 0 -10px;
}
.selectbox .select:active {
background: #f5f5f5;
box-shadow: inset 0px 1px 4px rgba(0,0,0,0.1);
}
.selectbox.focused .select {
border: 1px solid #5794BF;
}
.selectbox .select .text {
display: block;
width: 100%;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.selectbox .trigger {
position: absolute;
top: 0;
right: 0;
width: 34px;
height: 100%;
border-left: 1px solid #CCC;
}
.selectbox .trigger .arrow {
position: absolute;
top: 14px;
right: 12px;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 5px solid #000;
width: 0;
height: 0;
overflow: hidden;
opacity: 0.3;
filter: alpha(opacity=30);
}
.selectbox:hover .arrow {
opacity: 1;
filter: alpha(opacity=100);
}
.selectbox ul.dropdown {
top: 33px;
width: 240px;
margin: 0;
padding: 4px 0;
background: #FFF;
border: 1px solid #C6CBD0;
border-radius: 4px;
box-shadow: 0 2px 10px rgba(0,0,0,0.2);
font: 14px/18px Arial, Tahoma, sans-serif;
}
.selectbox li {
padding: 5px 10px 6px;
color: #231F20;
}
.selectbox li:hover,
.selectbox li.selected {
background: #08C;
color: #FFF;
}
.selectbox li.disabled {
color: #AAA;
}
.selectbox li.disabled:hover {
background: none;
}


(function($) {
$(function() {

$(document).bind('click', function(e) {
var clicked = $(e.target);
if (!clicked.parents().hasClass('dropdown')) {
$('span.selectbox ul.dropdown').hide().find('li.sel').addClass('selected');
$('span.selectbox').removeClass('focused');
}
});

$('select.slyled').each(function() {

var option = $(this).find('option');
var optionselected = $(this).find('option:selected');
var dropdown = '';
var selectText = $(this).find('option:first').text();
if (optionselected.length) selectText = optionselected.text();

for (i = 0; i < option.length; i++) {
var selected = '';
var disabled = ' class="disabled"';
if ( option.eq(i).is(':selected') ) selected = ' class="selected sel"';
if ( option.eq(i).is(':disabled') ) selected = disabled;
dropdown += ''+ option.eq(i).text() +'';
}

$(this).before(
''+
'' + selectText + ''+
''+
'
'+
''+
'
'
).css({position: 'absolute', left: -9999});

var ul = $(this).prev().find('ul');
var selectHeight = $(this).prev().outerHeight();
if ( ul.css('left') == 'auto' ) ul.css({left: 0});
if ( ul.css('top') == 'auto' ) ul.css({top: selectHeight});
var liHeight = ul.find('li').outerHeight();
var position = ul.css('top');
ul.hide();

/* */
$(this).prev().find('span.select').click(function() {

/* */
var topOffset = $(this).parent().offset().top;
var bottomOffset = $(window).height() - selectHeight - (topOffset - $(window).scrollTop());
if (bottomOffset < 0 || bottomOffset < liHeight * 6){
ul.height('auto').css({top: 'auto', bottom: position});
if (ul.outerHeight() > topOffset - $(window).scrollTop() - 20 ) {
ul.height(Math.floor((topOffset - $(window).scrollTop() - 20) / liHeight) * liHeight);
}
} else if (bottomOffset > liHeight * 6) {
ul.height('auto').css({bottom: 'auto', top: position});
if (ul.outerHeight() > bottomOffset - 20 ) {
ul.height(Math.floor((bottomOffset - 20) / liHeight) * liHeight);
}
}

$('span.selectbox').css({zIndex: 1}).removeClass('focused');
if ( $(this).next('ul').is(':hidden') ) {
$('ul.dropdown:visible').hide();
$(this).next('ul').show();
} else {
$(this).next('ul').hide();
}
$(this).parent().css({zIndex: 2});
return false;
});

/* */
$(this).prev().find('li:not(.disabled)').hover(function() {
$(this).siblings().removeClass('selected');
})
/* */
.click(function() {
$(this).siblings().removeClass('selected sel').end()
.addClass('selected sel').parent().hide()
.prev('span.select').find('span.text').text($(this).text())
;
option.removeAttr('selected').eq($(this).index()).attr({selected: 'selected'});
$(this).parents('span.selectbox').next().change();
});

/* Tab */
$(this).focus(function() {
$('span.selectbox').removeClass('focused');
$(this).prev().addClass('focused');
})
/* */
.keyup(function() {
$(this).prev().find('span.text').text($(this).find('option:selected').text()).end()
.find('li').removeClass('selected sel').eq($(this).find('option:selected').index()).addClass('selected sel')
;
});

});

})
})(jQuery)



JavaScript, / : select / 23.05.12 / [2]