Im trying to store a **summernote** value into **database** with **ajax/jquery** but it just send this value to database field -----> **[object Object]**.

**HTML**:

```
<div class="form-group">
    <label for="description">Desciption</label>
    <textarea name="description" id="description" class="summernote"></textarea>
</div>                                   
<div class="text-right">
    <a href="#" class="btn btn-primary" id="publish">Publier</a>
</div>

```

**Js file:**

```
$("#publish").on('click', function(e){
    e.preventDefault();     
    var description = $('textarea[name="description"]').html($('.summernote').code());  

    $.ajax({
        url : 'ajax/newpost.php',
        data : 'description=' + description,    

        success : function(data){                               
            alert(data);
            location.reload();                  
        }
    });         
});

```

**newpost.php**

```
    require_once('../config/connect.php');      

    $description = $_GET['description'];

    $stmt = $PDO->prepare("INSERT INTO `forum_posts` (`description`) VALUES(?)");
    $stmt->execute(array($description));

    if($stmt){
        echo "done ......................";
    }else{
        echo "error ..................";
    }

```