Change ID?

Change ID?

Hi, I was wondering how to chance the ID of a object using jQuery? Is this the general idea? Also the way it's written, will the code change circle1 to circle 2, then change both circle2's to circle1?
  1. <div id="box1">
  2.       <div id="circle1"></div>
  3. </div>
  4. <div id="box2">
  5.       <div id="circle2"></div>
  6. </div>



  1. $(document).ready(function(){
  2.   $("#Click").click(function() {
  3.     $("#Circle1").removeClass('Circle1').addClass('Circle2');
  4.     $("#Circle2").removeClass('Circle2').addClass('Circle1');
  5.     });
  6.     });