Possible Duplicate:
CSS :after pseudo element on INPUT field
Here is what I have that I am trying to use to style an input button:
.save:before, input[type="submit"]:before {content: "\2714";}
and here is the HTML that I a开发者_运维知识库m trying to style:
<input type="submit" id="edit-submit" name="op" value="Save" class="form-submit">
This works all other elements that are not input's, but is there a way to get it to work on the above code?
Thank you
No CSS, but Javascript:
var inputs = document.getElementsByTagName('input');
for (var i = 0, il = inputs.length; i < il; i++) {
if (inputs[i].type.toLowerCase() == 'submit') {
inputs[i].value = '\u2714 ' + inputs[i].value;
}
}
精彩评论