Change <body id="grid"> to <body class="list"> with jQuery..

Posted by Johua on Stack Overflow See other posts from Stack Overflow or by Johua
Published on 2010-05-25T09:04:51Z Indexed on 2010/05/25 9:11 UTC
Read the original article Hit count: 165

Filed under:
|
|

So i know how to change an id: $("body").attr('id', 'list');

But i wanna change the atribute itself, instead of id=grid i wanna have class=list

example:

<body id="grid">
<body class="list">

thy

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about attributes