TextArea validation

TextArea validation

I have a requirment in Jquery for textarea. I am new to jquery.

There is a text area and max allowed length is 250. But it should have 50 characters allowed in each line and there should be 5 rows only. If a particular word in each line does not fit in that line it can wrap move to the next line so that it is not strict rule that 50 characters(including space) should come in each line. but after the 5th line though we dont use all the 250 characters( we can space to enter characters) it should not allow the user to enter the remaining character in the 6th line.