korzystam ckeditora, chcialem poprzez ID textarea pobrac wartosc czyli wpisany tekst do edytora. Niestety nie udaje mi sie to zrobic ani poprzez getelementById ani przez jquery, co robie zle?
<textarea cols="80" id="opis2" name="editor1" rows="10"></textarea> </td> <script type="text/javascript"> CKEDITOR.replace( 'editor1', { fullPage : true }); function dodaj_usluge() { var opis; // var opis = document.getElementById('opis').value; var tytul = document.getElementById('tytul').value; var kat = document.getElementById('kat').value; var opis = $('textarea#opis2').val(); $.post("include/act_uslugi.php", {act: "dodaj", opis: ""+opis+"", kat: ""+kat+"", tytul: ""+tytul+""}, function(data){ if(data.length >0) { $('#wynik').show(); $('#wynik').html(data); } }); } </script>