Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Java
  3. Question
Java

How can I use jQuery and Settimeout to ensure the visibility of the message?

Asked by Donna Chapman Jun 14, 2024 780 views 1 answer
Share

About this question

I am currently developing a web-based application in which users can submit their forms to search for information. To enhance the experience of the users, I want to execute a particular feature where a loading message is displayed when the form is submitted, and it should remain visible until the search results are returned. To avoid the loading message from appearing too briefly in case of a very fast response, I also want to ensure that it should be displayed for at least 2 seconds. How can I approach this task by using jQuery and Settimeout? 

Your answer

1 Answer

More Java discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Java Blogs

Guides, tips and career advice on Java from JanBask experts.