0
<script>
jQuery(document).ready(function($){
$('#user-submitted-title').on('keyup',function(e){
$('#user-submitted-content').val('Watch this video'+ $(this).val() +'.');
});
});
</script>
これが結果になります: このビデオを見るxxx。jqueryを使用してテキストエリアにデータを埋め込むにはどうすればよいですか?
私は新しい行でより多くの文章を追加したい... お尻の例...
val('Watch this video'+ $(this).val() +'.');
val('Watch this best video'+ $(this).val() +'.');
val('Watch this great video'+ $(this).val() +'.');
val('Watch this something'+ $(this).val() +'.');
val('Watch this that'+ $(this).val() +'.');
このすべてでアップ機能、どのように?