so, for example, if your code is: <div id="btcontrole"> <span id="span1">hi</span> <span id="span2">bye</span> <Table> ...table info... </table> </div> Your jquery object $("#btcontrole") only contains one element, so the each() only works on it. If you wanted to have a jquery object that consists of the spans you would use $("#btcontrole span"), or if you wanted the table to be included: $("#btcontrole").children()
$("#btcontrole span").each(function(){alert($(this).attr('id'))}) result: span1 span2 On Jul 3, 3:04 pm, Alexsandro_xpt <[EMAIL PROTECTED]> wrote: > Hellow??? > > Somebody help me?