[Project_owners] Re: How to hide a <div> in JS

Michael Vincent mv_van_rantwijk at yahoo.com
Wed Aug 17 12:52:32 EDT 2005

Philip Chee wrote:
> On Tue, 16 Aug 2005 13:28:43 +0200, Michael Vincent wrote:
>> Do you know how this can be fixed? It should work with Mozilla and MSIE
>> tr.setAttribute("class", "selected");
> Apparently MSIE's implementation of setAttribute is very flaky and doesn't
> work with "style" and "class". A quick google suggests using className
> instead e.g.
>   tr.className = 'selected'
> <http://www.onlinetools.org/articles/unobtrusivejavascript/cssjsseparation.html>

First of all, thank you (again) but can you please tell me *how* exactly 
you find this kind of information on Google? Do you have all sort of 
links/bookmarks for this or are you just smart?


More information about the Project_owners mailing list