[Javascript] dynamically hide an element

diego nunes dnunes at gmail.com
Thu Nov 30 08:09:48 CST 2006


On 11/29/06, Aaron Bassett <aaronbassett at gmail.com> wrote:
> The advantages are much the same as separating them from the HTML.
> By setting classes rather than styles you can then keep all style
> information within the stylesheet.

    The advantages, obviously, are the separation of presentation and
behavior -- just the same as you do with content and formatting --,
but keep in mind that setting a class to ".hide" is as inefficient as
setting the property directly from JavaScript.
    The name of a property should reflect its meaning, not its formatting.

  Amplexos.

--
diego nunes
dnunes.com



More information about the Javascript mailing list