I'm trying to show a bootstrap select element inside a qtip2 element.
The select element hides behind the qtip element and adjusting the z-index doesn't seem to do anything
html
<span class="selector">qtip</span>
js
$(document).ready(function () {
$('.selector').qtip({
content: {
text: 'some text here <br>' +
'<select class="selectpicker">' +
'<option>Mustard</option>' +
'<option>Ketchup</option>' +
'<option>Barbecue</option>' +
'</select>' +
'<br>some more text here'
},
style: {
classes: 'qtip-bootstrap'
},
show: 'click',
hide: 'click',
events: {
show: function() { $('.selectpicker').selectpicker({container: 'body'}); }, // either one of these seems to work
render: function() { $('.selectpicker').selectpicker({container: 'body'}); }, // either one of these seems to work
},
});
});