Answers for "change the width of option in select"

0

change the height of select option

NO. It's not possible to change height of a select dropdown because that property is browser specific.
Posted by: Guest on August-25-2021
0

how to set option size to select in html css

$('select').change(function(){
  var text = $(this).find('option:selected').text()
  var $aux = $('<select/>').append($('<option/>').text(text))
  $(this).after($aux)
  $(this).width($aux.width())
  $aux.remove()
}).change()
Posted by: Guest on December-28-2021

Code answers related to "change the width of option in select"

Browse Popular Code Answers by Language