title: ajax request in ckeditor
body: <pre><code>                &lt;table  align="left" width="100%" &gt;
              &lt;tr&gt;
                  &lt;td&gt;
                      &lt;div class="form"&gt;
                          &lt;table width="500" cellpadding="5" cellspacing="5"&gt;
                              &lt;tr&gt;
                                  &lt;td&gt;
                                      &lt;form name="frmlist" id="frmlist" action="check.php" method="POST" enctype="multipart/form-data"&gt;
                                          &lt;table  width="802" style="border-collapse: collapse;"&gt;
                                              &lt;tr&gt;
                                                  &lt;td width="20"&gt;1&lt;/td&gt;
                                                      &lt;td width="120"&gt;&lt;span class="form_title"&gt;Brand Name&lt;span style="color: rgb(255, 0, 0); padding-left: 2px;"&gt;*&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
                                                      &lt;td&gt;&lt;select name="brand" id="Category_type" onchange="get_states();"&gt;&lt;?php
                                                      if($count&gt;0){
                                                          while($row=mysql_fetch_assoc($q)){ 
                                                          echo '&lt;option value='.$row['uniq_id'].'&gt;'.$row['brand_name'].'&lt;/option&gt;';
                                                      }}?&gt;
                                                      &lt;/select&gt;&lt;/td&gt;
                                              &lt;/tr&gt;
                                              &lt;tr height="10"&gt;&lt;/tr&gt;
                                                  &lt;tr&gt;
                                                      &lt;td colspan="3" width="1000"&gt;&lt;textarea cols="1000" id="editor1" name="editor1" rows="1000"&gt;
                                                          &lt;div id="get_state"&gt;&lt;/div&gt;&lt;/textarea&gt;
                                                      &lt;/td&gt;
                                                  &lt;/tr&gt;
                                              &lt;script&gt;
                                                  var editor;
                                                  function createEditor( languageCode ) {
                                                  if ( editor )
                                                      editor.destroy();
                                                      CKEDITOR.replace( 'editor1', {
                                                      extraPlugins: 'stylesheetparser',contentsCss: 'css/main.css',stylesSet: []
                                                      });
                                                  }
                                                  // At page startup, load the default language:
                                                  createEditor( '' );
                                              &lt;/script&gt;
                                              &lt;div&gt;
                                          &lt;/table&gt;
                                              &lt;input type="submit" name="partner_1" value="SUBMIT" class="sub" &gt;&lt;/div&gt;
                                      &lt;/form&gt;
                                  &lt;/td&gt;
                              &lt;/tr&gt;
                          &lt;/table&gt;
                      &lt;/div&gt;          
                  &lt;/td&gt;
              &lt;/tr&gt;
          &lt;/table&gt;    
  &lt;script type="text/javascript"&gt;
  function get_states() { // Call to ajax function
      var Category_type = $('#Category_type').val();
      console.log(Category_type);
      var dataString = "Category_type="+Category_type;
      //console.log(Category_type);
      $.ajax({
          type: "POST",
          url: "ajax_partner.php", // Name of the php files
          data: dataString,
          success: function(html)
          {
  
               $("#get_state").html(html);
          }
      });
  }
  &lt;/script&gt;       
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>first there is a dropdown which brings the value from the database , When user click on any value , It send a ajax request through which I get the value and get the html from it place it between the <strong>div which has id get_state</strong> 
  I am using a check editor so that the user can see and edit his work 
  i have checked it on my console and its bringing the data so please anybody can help me </p>