input[type="submit"]:select CSS is not working

Programmer picture Programmer · Jun 7, 2012 · Viewed 10.8k times · Source

I have a .css stylesheet that has styles for my input type buttons like the following.

input[type="submit"]
input[type="submit"]:hover
input[type="submit"]:focus

the above three works but input[type="submit"]:select does not work. I even tried :selected. Does :visited, :link etc applies for <input type="button" /> and <input type="submit" />?

Please help me how to get input[type="submit"]:select to working

Answer

univerio picture univerio · Jun 7, 2012

Because :select is not a valid CSS pseudo-class.