首页javascriptinputjQuery Form - 如何样式选择输入框

jQuery Form - 如何样式选择输入框

我们想知道如何样式选择输入框。

<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-1.5.2.js'></script>
<style type='text/css'>
option {
  background: orange;
}
</style>
<script type='text/javascript'>
$(window).load(function(){
    $('#selectbox').css({
        'background': 'blue',
        'color':'white'
    });
});
</script>
</head>
<body>
  <select id="selectbox" class='ui-state-error'>
    <option>123</option>
    <option>456</option>
    <option>789</option>
  </select>
</body>
</html>