[jQuery] Submit form via Ajax

[jQuery] Submit form via Ajax


Hey guys!
I just wanted to check if someone knows how to implement TinyMCE into
a Ajax Form Submit script? It looks like TinyMCE ( the WYSIWYG
editor ) writes the data in it's iframe into the hidden textarea but
it does not do so until after the code below has finished:
        $('#new_textfield').submit(function() {
            var inputs = [];
            $(':input', this).each(function() {
                inputs.push(this.name + '=' + escape(this.value));
            });
            console.log(inputs.join('&'));
            return false;
        });
So when I click "Submit" the first time, it just displays the textarea
as empty, but the second time I click "Submit" it displays the text.
Can anyone turn me into the right direction?
Sincerely,
Magnus