Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> option:disabled { background: #8ebf42; } </style> </head> <body> <h2>:disabled selector example</h2> <select> <option value="paris">Paris</option> <option value="london" disabled>London</option> <option value="moscow">Moscow</option> <option value="rome" disabled>Rome</option> <option value="berlin">Berlin</option> </select> </body> </html>