如果某個 input 沒有輸入就不能submit
html 代碼
以下引用了jquery
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
再加上這段
這樣一來id_model_number和id_name必須有輸入數據才能submit
參考
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
再加上這段
這樣一來id_model_number和id_name必須有輸入數據才能submit
參考
留言
張貼留言