Hi, I have a simple popup list showing as soon as I click on the popup menu. Unfortunately, this CSS popup is absolutely and without it, the popup gets under the page.
In addition, it is displayed in different positions in different browsers.
$self.next().bind('click', viewList); if (!settings.appendTo) { $self.after(createDropdown($self, selectboxCounter)); } else { var offset = $self.parent().offset(); $(settings.appendTo).append(createDropdown($self, selectboxCounter).css({ 'top': offset.top, 'left': offset.left, 'width': 100//'width': $self.parent().width() * 0.8 })); } } $self.trigger('change'); selectboxCounter++; }); // Hide dropdown when click is outside of the input or dropdown $(document).bind('click', hideDropdown); $('.sb-custom').find('.sb-select').live('keydown', selectKeypress); $('.sb-custom').bind('blur', clearKeyStrokes); $(document).delegate('.sb-dropdown', 'focus', viewList); return this; };
I want to place the popup at the position of the parent choice or the position of the menu. Also tune in to different browsers.
source share