Dynamically insert ckeditor in a form through javascript

I have used ckeditor plugin in various projects including core php and wordpress.Right now I am working on project where user presses “Add New Row” button and form elements are added dynamically through js.

So far my code looks like this:

<?php
  // Include the CKEditor class.
   include_once "../ckeditor/ckeditor.php";
   // The initial value to be displayed in the editor.
   // Create a class instance.
   $CKEditor = new CKEditor();
   // Path to the CKEditor directory, ideally use an absolute path instead of a relative dir.
   //   $CKEditor->basePath = '/ckeditor/'
   // If not set, CKEditor will try to detect the correct path.
   $CKEditor->basePath = '../ckeditor/';
   $config = array();
      $config['toolbar'] = array(
          array('Link', 'Unlink','NumberedList','BulletedList','RemoveFormat','Bold'),
      );
   $config['width'] = '400';
   $config['height'] = '150';
   // Create a textarea element and attach CKEditor to it.
  ?>
  <?php
    if(isset($generalbackground))
     $initialValue =  $generalbackground;
    else
        $initialValue =    '';
   $CKEditor->editor("new_article_admin_".$_POST['new_admin_file_type']."_desc[]", $initialValue,$config);
  ?>

Here I want to generate an array of ckeditor text box.But only first box is working and dynamically generated are kind of disabled. Can anyone help me in this regard?