See, for example,
Edit fiddle — JSFiddle[
^].
If this is not what you want, please explain. Your question is quite unclear. It's unclear how the button problem is related to "thousands of record" in a drop-down list, but it's quite certain that you should not show so many items in a drop-down list, and not even on the whole page; it would be unusable anyway.
—SA