How to get value from textarea (beginner q)

How to get value from textarea (beginner q)

I have a php-page where I have a textarea I use to update a database table with.
The form pretty much looks like this:

   
  1. <form action="page_edit_save.php" method="post">
  2. <ul>
  3. <li>
  4. <textarea name="content" id="content" rows="15" cols="62">
  5. <?php get_page_content($id); ?>
  6. </textarea> 
  7. </li>
  8. <li>
  9. <input type="hidden" name="id" id="id"
  10. value="<?php echo $id; ?>">
  11. <input type="submit" id="submit_page_edit"
  12. class="buttons" value="Edit page"> 
  13. </li> 
  14. </ul> 
  15. </form>
The page_edit_save.php pretty much looks like this:

   
  1. if(empty($_POST) === false) { 
  2.       $id = $_POST["id"]; $content = $_POST["content"];
  3.       $return["msg"] = "Saving..."; edit_post($id, $content);
  4.       $return["correct"] = "Yes";
  5.       echo json_encode($return); exit(); }
  6.       else {
  7.             $return["msg"] = "Error. Please try again later.";
  8.             echo json_encode($return); exit(); }

These two work good together and the database is updated as intended.
But when I try to include a .js file for some jQuery fun the database update fails.

The important parts of the .js code looks pretty much like this:


   
  1. $('#submit_page_edit').click(function(e) {
  2.       e.preventDefault();
  3.       var formData = $('form').serialize();
  4.       submitForm_page_edit(formData);
  5. });

  6. function submitForm_page_edit(formData) {
  7.       $.ajax({
  8.       type: 'POST',
  9.       url: 'page_edit_save.php',
  10.       data: formData, dataType: 'json',
  11.       cache: false,
  12.       timeout: 7000,
  13.       success: function(data) {
  14.             $('#response').html(data.msg);
  15.             $('#notification').css('visibility',
  16.             'visible').slideDown('fast');
  17.             }
  18.       });
  19. };

After much trying and failing I have found out that the .js-file doesn't seem get the data from the textarea.
Any clues on what I'm doing wrong?