Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] dynamically hide an element


  • From: dnunes at gmail.com (diego nunes)
  • Subject: [Javascript] dynamically hide an element
  • Date: Thu Nov 30 08:10:10 2006

On 11/29/06, Aaron Bassett <aaronbassett@xxxxxxxxx> 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