hello all i am using selectize plugin to create tags to my site everything is good except that the drop down item gets overlapped by my other divs.
i want them to behave like select items which are absolute and always in frnt.
i have tried positioning with absolute and z-index but no help if you could suggest me something about the plugin it would be great.
<script src="tags/selectize.js"></script>
<link rel="stylesheet" href="tags/selectize.default.css"/>
<div class="control-group">
<select id="<?=$getid_i?>" multiple name="dept[]" class="demo-default" >
<option value=""><?=$placehol?></option>
<?php if ($tagwhats =='depts'){
// something to get ....
} else if($tagwhats =='skills'){
// something here ...
} ?>
</select>
</div>
<script>
var eventHandler = function(name) {
return function() {
console.log(name, arguments);
$('#log').append('<div><span class="name">' + name + '</span></div>');
};
};
var $select = $('#'+"<?=$getid_i?>").selectize({
create : true,
onChange : eventHandler('onChange'),
onItemAdd : eventHandler('onItemAdd'),
onItemRemove : eventHandler('onItemRemove'),
onOptionAdd : eventHandler('onOptionAdd'),
onOptionRemove : eventHandler('onOptionRemove'),
onDropdownOpen : eventHandler('onDropdownOpen'),
onDropdownClose : eventHandler('onDropdownClose'),
onFocus : eventHandler('onFocus'),
onBlur : eventHandler('onBlur'),
onInitialize : eventHandler('onInitialize'),
});
</script>