Commit 7529f6e9 by Muhammad Iskandar Java

Merge branch 'master' of http://git.unesa.ac.id/aisah/konaspi2024

parents 7c4582fc 88384322
......@@ -3,9 +3,9 @@
<div class="card-body">
<div class="form-group" id = "list-kegiatan" @if ($errors->has('thematic_workshop')) has-error @endif>
<label>Kegiatan</label>
@foreach ($kegiatan as $keg)
@foreach ($kegiatan as $j=>$keg)
<div class="form-check">
<input class="form-check-input" type="radio" id="kegiatan" name="kegiatan{{ $i }}[]" value="{{ $keg->id }}">
<input class="form-check-input" type="radio" id="nama-kegiatan-{{ $i }}-{{ $j }}" name="kegiatan{{ $i }}[]" value="{{ $keg->id }}" onChange="cekKegiatan('nama-kegiatan-{{ $i }}-{{ $j }}')">
<label class="form-check-label" for="{{ $keg->nama }}">{{ $keg->nama }}</label>
</div>
@endforeach
......
......@@ -149,25 +149,15 @@
@push('js')
<script>
function cekKegiatan(){
console.log('masuk');
if(document.getElementById('kegiatan').value == '498633a9-082c-4a4a-9dbd-e20b678ec15e'){
document.getElementById('grup-konferensi').style.display = 'none';
}
else{
document.getElementById('grup-konferensi').style.display = 'block';
function cekKegiatan(id){
var value = document.getElementById(id).value;
if(value == '498633a9-082c-4a4a-9dbd-e20b678ec15e'){
$('#grup-konferensi').hide();
} else {
$('#grup-konferensi').show();
}
}
function cek(var){
console.log('masuk', var);
if(document.getElementById('kegiatan').value == '498633a9-082c-4a4a-9dbd-e20b678ec15e'){
document.getElementById('grup-konferensi').style.display = 'none';
}
else{
document.getElementById('grup-konferensi').style.display = 'block';
}
}
</script>
<script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment