I'm having select box on my page and once the user selects the value from the list box the form refreshes and presents the data to the user,I need to display some text " Saying that Form is refreshing" while the data is loading and once the data is loaded it should not display.
Couls any one help me how to do this in javascript.
Location: Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
Posts: 7,686
Thanks: 42
Thanked 637 Times in 625 Posts
I would use a hidden <div> tag and you can control a <div>'s visibility by changing its property like this:
Code:
document.getElementById("pleaseWaitDiv").style.visibility="visible"; //show div
document.getElementById("pleaseWaitDiv").style.visibility="hidden"; //hide div