problem creating a html string from $("div.winsection>div.blockTitle").eq(intIndex);

problem creating a html string from $("div.winsection>div.blockTitle").eq(intIndex);

Hey.
I am pretty new at this.

my problem is as follow:
I have several blocktitles in my html. I want to create a menu from these.
I use the code below to add them. But when i try to put them into the menu i just writes [object Object] instead of the block title. What am i doing wrong here ???


  1. var menutext = "";
  2.  $( "div.winsection>div.blockTitle" ).each(
  3. function( intIndex ){
  4. menutext = menutext + $("div.winsection>div.blockTitle").eq(intIndex);
  5. menutext = menutext + "<br>";
  6.  }
  7.  );
  8. $("div#automenu").html(menutext);


/rasmus