I'm creating an HTML form and want it to display icons after the input fields whenever the data inside them has changed, and I'm struggling to find the right way to do this through CSS. I currently have the following class:
.ChangedInput
{
border: 2px solid green;
}
.ChangedInput:after
{
content:url('/Images/icons/table_edit.png');
}
And this is my input element:
<input type="text" name="DetailedDescription" size="160" class="ChangedInput" />
The green line is correctly applied as border, but I would expect teh table_edit.png icon to appear after the input element, alas it is not...
Here's a JSFiddle showing what I'm trying to accomplish: http://jsfiddle.net/8Hh8L/
EDIT: I should have stated that I want to apply this icon to a set of existing forms, and it would be a pain to go through all of them and change the input elements. So I'm looking for a solution which allows me to apply this to an existing input element. Using Javascript/Jquery if need be...