Hi all,
I have a set of Javascript functions that dinamically update the
contents of a HTML <selectelement, depending on the value of another
<select>. For easy understanding: I select a region/state in one
<selectand then I update the list of towns in that region in the
other <select>.
Some regions have lots of towns and there is a little wait until the
browser updates completely the <select>. I want to show a "Loading..."
message, but I cannot make it work.
I try to show/hide a div with this message using its CSS property
display. But the browser only shows that message if I make an
alert("pause") anywhere after I have changed the CSS attribute.
It seems like the alert forces the browser to draw the changes... Is
there any way to force that drawing?
Thanks