This is done by selecting the span elements of the quote we have created earlier and looping through them. The characters of the displayed quote are colored ‘red’ or ‘green’ depending on whether it has been typed correctly. Coloring the characters of the quote text.This is split into an array of characters to compare with the quote text. The value property of the input area is used to get the current text typed by the user.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |