I have this jquery code i would like it printing on a new line everytime i click the button.
<script language="javascript">
$('.example-default-value').each(function () {
var default_value = this.value;
$(this).focus(function () {
if (this.value == default_value) {
this.value = '';
}
});
$(this).blur(function () {
if (this.value == '') {
this.value = default_value;
}
});
});
function example_append() {
$('#step').append($('#example-textarea'+ /n).val());
}
</script>
I’m going to assume you are referring to this method and the rest of the code is irrelevant?
It is HTML, so you need to put a
<br />for a newline.