Formatting text with Javascript

On the forum i read a question about how to format text differently in one textbox. Answer was that it was difficult to do dynamically. Well could not resist offcourse to make a sample work like that. One other question popping up in the forum was about how to pass the content of a textbox to a variable. Well the easy way would be use an invisible inputfield to hold that data. Use the variable from that inputfield to fill any textbox you have. Offcourse this can also be done by Javascript. Check out this sample.. both for the text formatting as for how to pass data forth and back from Javascript to Lectora.

Preview image



Your email address will not be published. Required fields are marked *