1 2 3 |
$( "#submitboard" ).switchClass( "#submitboard", "submitboardnew", 1000 ); |
I changed the id called ‘touser’ to ‘dogs’ below
1 2 3 |
$('#touser').attr('id','dogs'); |
This changes the id of submit board to the class of submitboardnew.
You can use id or class in this example.