Rick Faircloth schrieb:
> Just found out that any message over 40KB in size must
>
> be reviewed by the moderator…don’t know how long that
>
> takes so I thought I’d rewrite…
>
> Apparently the jQuery code has to be placed (in my example, anyway)
>
> right next to the text itself.
>
> This doesn’t work:
>
> <dl id=”ann”>
>
> <table>
>
> <dt>
>
> <tr>
>
> Announcement Title…
>
> </tr>
>
> </dt>
>
> <dd>
>
> <tr>
>
> Announcement Details…
>
> </tr>
>
> </dd>
>
> </table>
>
> </dl>
>
> This does:
>
> <table>
>
> <tr>
>
> <dl id=”ann”>
>
> <dt>
>
> Announcement Title…
>
> </dt>
>
> <dd>
>
> Announcement Details…
>
> </dd>
>
> </dl>
>
> </tr>
>
> </table>
>
> Is this a jQuery thing or Javascript characteristic in general?
What exactly do you mean by "right next to the text itself"? Did you
include some code which didn't work in the head but if you include it
after the elements in the source (or for example right before the body's
closing tab)?
Most jQuery operations do only work after the DOM tree is ready, thus
there is an event handler to attach your functions to:
$(document).ready(function() {
// do your stuff here
});
There's also a shortcut for this:
$(function() {
// do your stuff here
});
HTH,
Klaus
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/