0 Replies Latest reply on May 21, 2010 12:06 AM by chung siu man

    How to set fous to specific row of the extended datatable after reRender

    chung siu man Newbie

      Hi,

       

      I got a web page, with extended datatable, a button which add a row in extended datatable.

      My problem is to set focus on last added row of the extended datatable after reRendered.

       

      I know we can set focus on field using below code, but it do not works if table is reRendered, and work

      again if I add "javascript alert" on below code, why is that and please.

       

      var id ="form1:glSectCodesTable:8:desc";
      obj= document.getElementById(id);

      //alert("testing");
      obj.focus();

       

      Thanks