Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="xtra" id="id1"><a href="#"><span>Next</span></a></div>
- $j("#id1").attr('id', 'id2');
- $j("#id1").live('click',function(){
- $(this).attr('id', 'id2'); //use this one
- this.id = 'id2'; //or this one <-- they both do the same thing
- })
Add Comment
Please, Sign In to add comment