Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
入力フィールドを他のものにコピーする方法を知っています。問題ありません。一部(つまり、日付フィールドの月)を別のフィールドにコピーするにはどうすればよいですか。
日付範囲(つまり、7-13-09から7-15-09)のフィールドを取得し、それを2つの入力フィールド(つまり、開始日と終了日)にコピーしたい
$("#startDate, #endDate").each( function( i ) { $(this).val( $("#dateRange").val().split(" to ")[ i ] ) })