how to get tinymce value in javascript?+ Drupal7 I am using drupal7 form 

$form['subject'] = array('#type' =&gt; 'textfield',
        '#title' =&gt; t('Subject'),
        '#maxlength' =&gt; 200,
        '#size' =&gt; 100,
        '#required' =&gt; TRUE,
);

$form['body'] = array('#type' =&gt; 'textarea',
        '#title' =&gt; t('Body'),
        '#type' =&gt; 'text_format',
        '#base_type' =&gt; 'textarea',
        '#format' =&gt; 'full_html',
        '#required' =&gt; TRUE,

);


we used tinymce editor. Posting form with jquery like this

$.ajax({
            url: '/myevent/preview',
            data: $('#eventform').serialize(),
            type: 'POST',
            success: function(data){
                $('#eventdata').html(data);
            }
        });


At my local its working fine, but on server, I couldn't get value of body textarea.
Try this I suppose this may help.


  tinyMCE.triggerSave();
  
  $('#textarea-selector-id).val();


i suppose that your text area would be inline:TRUE; 
change the text area to a div this may work

or

var editor='textarea-selector-id';
var content =tinyMCE.activeEditor.getContent();
alert(content);