javascript - Bootstrap-Select opens option under the div -


i have fixed size div. suppose 50px. inside have drop down. i've used bootstrap select make searchable.

<div style="height=40px;width:200%; overflow-x:scroll;" id="hugewidth">   <select id="ss">     <option>1</option>     <option>1</option>     <option>1</option>     <option>1</option>     <option>1</option>   </select>   <br/><br/><br/> </div> 

now problem when open dropdown , options goes under hugewidth div. want dropdown open above div. see jsfiddle might clear problem.

jsfiddle

see!! goes under scrollbar. can please me this?? want dropdown option div go on scrollbar. if not possible, there way adjust div height according dropdown option size while open , close? dropdown options dynamic.

one more thing. possible stop dropdown open upwards? example: jsfiddle

you can add:

data-container="body" 

to select element. or element show dropdown on there. see it: http://jsfiddle.net/icemanspy/y9hyd/2/


Comments

Popular posts from this blog

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -