I'am doing some form validation and noticed that Internet Explorer don't works correctly (as always). If I attach some text and CSS into a div-element and delete it again (when the input is ok) the Explorer doesn't correct the display again. I mean the text gets deleted, but there still remains a blank row (as if there is br-element). I've checked the source-code and the CSS was deleted correctly, but the display isn't correct. Why?
Other browsers have no problems.
if(bla)
{
$("div[bez='avz_kw_err']").eq(index).html("Mindestens 3 Zeichen");
$("div[bez='avz_kw_err']").eq(index).attr("style","color:red; font-size:12px; line-height:12px; position:relative; top:5px; left:25px;");
}
else
{
$("div[bez='avz_kw_err']").eq(index).html("");
$("div[bez='avz_kw_err']").eq(index).attr("")
}