semantic-ui 모달에 문제가 있습니다. 명령을 클릭하면 모달이 표시되지만 모달은 잘 작동하지 않습니다. 순서 모달을 클릭하면 모달이 표시되고 그 다음에 닫힙니다.semantic-ui modal 사용 방법
보기 코드
<div class = "ui form grid_6 omega">
<form target="paypal" method="post">
<div class="field1">
<div class="field">
<label>Nama</label>
<input placeholder="Nama" name="nama" type="text">
</div>
<div class="field">
<label>No. HP</label>
<input placeholder="No. HP" name="handphone" type="text">
</div>
<div class="field">
<label>Alamat</label>
<input placeholder="alamat" name="alamat" type="text">
</div>
<div class="field">
<label>Jumlah</label>
<div class="selectbox">
<select name="jumlah" id="">
<?php for ($i=1; $i <= 20; $i++): ?>
<option value="<?php echo $i; ?>"><?php echo $i; ?></option>
<?php endfor; ?>
</select>
</div>
</div>
<button type="submit" name="submit" class="ui teal button order-button">Order now</button>
</div>
</form>
</div>
<div id="modaldiv" class="ui small modal">
<i class="close icon"></i>
<div class="header">
Smalls Like Bakin
</div>
<div class="content">
<p>Thank you for your order</p>
</div>
<div class="actions">
<div class="ui positive right labeled icon button">
<a class="text-white" href="<?php echo site_url('home/order');?>">Back to Home</a>
<i class="checkmark icon"></i>
</div>
</div>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>packaged/javascript/semantic.js"></script>
<script type="text/javascript">
$('.order-button').click(function(){
$('#modaldiv').modal('show');
});
</script>
당신이 날이 문제를 해결하는 데 도움이 될 수 있습니다 스크립트 모달? 고맙습니다.
디버그 콘솔에서 오류 메시지를 확인하십시오. 그렇지 않으면 우리가보다 효율적으로 당신을 도울 수 있도록 바이올린을 제공하는 것이 가장 좋습니다. – TCHdvlp
자기를 폐쇄한다는 것은 무엇을 의미합니까? – iMom0
당신과 같은 만남 ... – Dickeylth