Commit 88384322 by Siti Aisah

convention only, hide conference option

parent ff94b584
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
<div class="card-body"> <div class="card-body">
<div class="form-group" id = "list-kegiatan" @if ($errors->has('thematic_workshop')) has-error @endif> <div class="form-group" id = "list-kegiatan" @if ($errors->has('thematic_workshop')) has-error @endif>
<label>Kegiatan</label> <label>Kegiatan</label>
@foreach ($kegiatan as $keg) @foreach ($kegiatan as $j=>$keg)
<div class="form-check"> <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> <label class="form-check-label" for="{{ $keg->nama }}">{{ $keg->nama }}</label>
</div> </div>
@endforeach @endforeach
......
...@@ -149,25 +149,15 @@ ...@@ -149,25 +149,15 @@
@push('js') @push('js')
<script> <script>
function cekKegiatan(){ function cekKegiatan(id){
console.log('masuk'); var value = document.getElementById(id).value;
if(document.getElementById('kegiatan').value == '498633a9-082c-4a4a-9dbd-e20b678ec15e'){ if(value == '498633a9-082c-4a4a-9dbd-e20b678ec15e'){
document.getElementById('grup-konferensi').style.display = 'none'; $('#grup-konferensi').hide();
} } else {
else{ $('#grup-konferensi').show();
document.getElementById('grup-konferensi').style.display = 'block';
} }
} }
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>
<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