I want to insert a line Break after every 55 characters i have made a jquery
script but it doesn't work can some one please point me in the right direction
Jquery.js
$(document).ready(function() {
$('#text_comment').text($(this).val().replace(/([\s\S]{55})/g, '$1<br />'));
});
Index.php
<input type="text" class="comment" id="text_comment"autocomplete="off"time_date="<?php echo $date_shared;?>"
username="<?php echo $comment_username;?>"post_id="<?php echo $shared_id2; ?>"placeholder="Write a Comment"/>
after x amount of characters in a