Rafee
Rafee

Reputation: 4078

How the set height of a selection box drop down?

I have 2 selection boxes states and cities, On state selection change I am writing a java script to display cities of that respective state by hiding rest of the cities. The problem is, height of the selection box dropdown is getting effected in chrome where as its appearing fine in firefox.

This is how its appearing in Chrome

This is how its appears in Firefox

Is there a quick and proper solution for this?

Upvotes: 0

Views: 3560

Answers (1)

Ferdinand Fatal
Ferdinand Fatal

Reputation: 384

i found a solution to this problem in this post myself Height of an HTML select box (dropdown)

maybe you can check that one out. it helped me out a lot and i hope it helps with your problem aswell.

As i just saw there is a kind of dublicate Question right here <select> HTML element with height

It got some good Ideas too. But i didnt check them all so far. Maybe you can find something in that post too

Upvotes: 1

Related Questions