I need to append text user entered into a fixed width and height div. I set the div overflow:auto, but I only want to show vertical scrollbar, don’t want to see the horizontal one. How to make the text wrap automatically to fix the width of div?
<script>
function Send(){
var text=$("[id$='Text1']").val();
$('#contentDIV').append("me: "+text+"<br />");
}
</script>
online demo: http://jsfiddle.net/3CQmP/