The user enters a string into a traditional html input field (type="text"). For example, lets say the input is "2013/13/29". At validation, the RegEx determin that 13 is invalid. I want the "13"'s background-color to become red and all other character's background-color to become green. Can this be done in HTML? Perhaps the use of a span inside an input tag.
Short answer, you can't add a span inside input tag. try using jqueryUI datetimepicker, it will save you a lot of time. http://jqueryui.com/datepicker/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With