Answered
How to validate the apostrophe (') when using TEB and JavaScript.
- March 31, 2022
- 2 replies
- 887 views
I have a project where users need to write the time in a Text Entry Box.
1. Users clic a speaker to hear the audio (tells the time. For example: It is one o'clock.)
2. Then, users type that sentence time in a TEB.
3. TEB has a variable declared (for example: writing_01 is equal to It is one o'clock)
4. Then, a submit button checks if writing_01 is equal to the given sentence (for example: It is one o'clock).
Issue:
When users type the word o'clock (the submit button gives an incorrect answer). However, when I removed the apostrophe the answer is correct.
Problem:
Users learned to write o'clock with the apostrophe.
Can you suggest a proper way to handle the apostrophe?
Thanks.
