Reputation: 1980
Currently I'm using this typeahead but it display like this:
Ist possible to display the typeahead, same width as the input
?
What I tried so far is:
.dropdown-menu {
display: block; position: static; width: 100%;
}
But this break the lower fields
Check my fiddle
UPDATE:
I tried both of @neel shah and @shin solution and this is the result. I don't know why in the fiddle is not looking this way
Upvotes: 0
Views: 622
Reputation: 3649
Try this. Hope it helps.
.dropdown-menu { width: 100%; }
UPDATE: Check this out.
Upvotes: 1
Reputation: 11506
$('.typeahead').typeahead({})
on('typeahead:opened',function(){$('.dropdown-menu').css('width',$('.typeahead').width() + 'px');});
Upvotes: 0