0

Is it possible to change the style of options of select tag?

I think Since the options list populated in the ios/android phone is OS specific, CSS or javascript cannot change the appearance of the same. Is there any way do that(i.e. change the style of the select option)?

Mantu Nigam
  • 3,690
  • 7
  • 24
  • 41
  • Hi @Mantu. My answer has helped to solve your issue? If so, can you [accept it](https://meta.stackexchange.com/q/5234/179419) by clicking the check-mark? This indicates to the wider community that you've found a solution and gives some reputation to both the answerer and yourself. There is no obligation to do this. – Bruno Peres May 10 '18 at 20:00
  • Did you find the solution @Mantu Nigam? I am stuck at the same issue. – Rohit Singh Nov 15 '21 at 21:27
  • @RohitSingh to overcome that issue we had used ion-select instead of native one. – Mantu Nigam Nov 16 '21 at 11:03

1 Answers1

0

Without working directly on native code, no. As you said, CSS and JavaScript can't change the appearance of the natively rendered options. As a alternative, you can use, for example, a jQuery plugin instead of the default input and customize the style of it.

Here some alternatives.

Another alternative is write a Cordova plugin to achieve your goal.

Some related questions:

Community
  • 1
  • 1
Bruno Peres
  • 15,845
  • 5
  • 53
  • 89