I was working on a project where I had two text fields. The learner would enter the information and then click a Submit button. After the feedback, I wanted to have the learner put in some new information in the same text fields. However, there was no easy way to clear the text fields. So I found a simple JavaScript routine that accesses the JQuery library that will not only clear the text field but also set the focus on one of the text fields. I hope this short tutorial will be helpful to you.

All Comments
Sort by:  Most Recent
2022-10-07 17:24:15

Hello Phil !…

I already had this line of code in my “Javascriptionnary” !… So I assume it has been shared already by the Community !…

Thanks for the “focus” one, which is new !…

But I’m wondering how did you put your analog clock in the first frame… Was it made with Animate ?…

Glad to see you here back anyway !

😉

Like