Can I detect special character and highlight?

nilubon03 24 Mar, 2016
Hi,

I have a text field. I have a set of special character validation both JavaScript and custom server side validation.

How can I detect what special character(s) they enter to a text field and make highlight(s), so they can fix error easily?

Thank you,

Nilubon
GreyHead 24 Mar, 2016
Hi Nilubon,

You can use the onChange or onKeyUp events in the text input element to check the value. Then probably a search and replace on the value to add highlighting - but that may not show up in a text input. Perhaps you can show a message instead?

Bob
This topic is locked and no more replies can be posted.