를 선택laravel 양식은 내가 어떤 선택 형태를 동적 변경 값
{!! Form::select('cl_1',array('' => 'No team') + $teams, null, ['class' => 'form-control', 'id' => 'cl_1']) !!}
{!! Form::select('cl_2',array('' => 'No team') + $teams, null, ['class' => 'form-control', 'id' => 'cl_2']) !!}
내가 cl_1 값을 선택할 때 동적으로 cl_2 양식의 값을 변경할 수있는 방법;
<script>
$(document).ready(
$('#cl_1').change(function(
$('#cl_2').val($('#cl_1').val()); //Or any code you need goes here
));
);
</script>
cl_2 값이 변경되지만 양식에 변경은 없다 : –