?
?
<script src="jquery.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
??????? $('#s').click(function () {
??????????????? var c = $('#textarea').val();
??????????????? var arr = c.split('\n');
??????????????? alert(arr[0]);
??????????????? alert(arr[1]);
??????? });
});
</script>
<textarea name="textarea" id="textarea" cols="45" rows="5"></textarea>
<input type="button" name="s" id="s" value="Submit" />