I want to programmatically change the title of my Bootstrap-select selectpicker.
I tried the following JS code which does not work.
$('#myPicker')
.selectpicker({title: 'New title'})
.selectpicker('render');
Any other ways I can do this?