assigning ID's to body tag using jquery
问题 Help on this guys, I have here a script that adds an ID on body tag this is the result I see <body id="xxx-cat"> with the script I'm using below <script> $(document).ready(function(){ // Edit xxx-cat to match desired category link id: $('body').attr("id","xxx-cat"); if ($('body[id]')) { var bid = $("body").attr("id"); // Keep the next command on one line $('div.droplinebar li a[class='+bid+']').addClass('current'); } }) </script> How can I make the ID's (1,2,3,4), because I have 4 pages and