Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function dynamicSelect(id){
- $.typeahead({
- input: '#selector_typeahead'+id,
- },
- callback: {
- onShowLayout:function (node, query){
- // this sets the current selectors z-index to max value
- $(node).parent().parent().parent().parent().css('z-index','1041')
- },
- onHideLayout:function (node, query){
- // this sets the current selectors z-index to min value
- // resetting to min value allows the current selection result appear on top always
- $(node).parent().parent().parent().parent().css('z-index','0');
- }
- }
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement