I know how to change an id: $("body").attr('id', 'list');
But now I want to change the attribute itself; instead of id='grid'
I want to have class='list'
For example, this:
<body id="grid">
Should turn to:
<body class="list">
I know how to change an id: $("body").attr('id', 'list');
But now I want to change the attribute itself; instead of id='grid'
I want to have class='list'
For example, this:
<body id="grid">
Should turn to:
<body class="list">