Hello, I am an absolute jquery newbie since yesterday evening.
I couldn't make some stuff go away.
I struggled for some time with this (later saw in the manual, that
hide() only applies to stuff that is visible).

So just in case anybody else is a newbie and struggles with the same
as me, here is an example.

It removes the loading class (which is invisible) from the top table
after load and (I thought!;-) after hiding some of the bad rows in it.

The workaround is as easy as initially hiding "hideme" class, but i
thought i was being fancy.

kind regards  (and what a great piece of software)
jorgen

---------------------------------------------------
<html><head>
<style type="text/css">.loading{visibility: hidden} .hideme{background-
color:red;}</style>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
        $(".hideme").hide()
        $("#loading").hide()
        $(".loading").removeClass("loading")
})
</script>
</head><body>

<div id="loading">Loading Progress.....</div>

<table class="foobaa loading">
<tr><td>This table will not be displayed before finished working with
it</td></tr>
<tr class="hideme"><td>This is the bad row - it should be hidden</td></
tr>
</table>

<table class="foobaa">
<tr><td>This table will be displayed at once</td></tr>
<tr class="hideme"><td>This is the bad row - it should be hidden</td></
tr>
</table>

</body></html>
---------------------------------------

Reply via email to