1<textarea name="DSC" class="materialize-textarea"></textarea>
2<script>
3 CKEDITOR.replace('DSC');
4 </script>
5
6var desc = CKEDITOR.instances['DSC'].getData();
7OR:
8
9var desc = CKEDITOR.instances.DSC.getData();
1$('input#mybutton').click(function() {
2 var text = $('textarea#mytextarea').val();
3 //send to server and process response
4});
1<textarea id="myTextarea">
2Hello World
3</textarea>
4
5<script>
6 var x = document.getElementById("myTextarea").value;
7</script>