模态中的语义ui提交按钮

时间:2016-05-31 18:40:39

标签: javascript jquery semantic-ui

我遇到了问题

这是我的模态窗口代码:

    <div class="ui modal"> <i class="close icon"></i>
        <div class="header">Modal Title</div>
        <div class="content">
           <form class="ui form" method="post" action="example.com">
               <div class="image">An image can appear on left or an icon</div>
               <div class="description">A description can appear on the right</div>
               <div class="ui input" name="a">
                  <input type="text" placeholder="Search...">
               </div>
               <div class="actions">
                  <div class="ui button">Cancel</div>
                  <div class="ui button">OK</div>
                  <input type="submit" value="submit" class="ui button">
               </div>
            </form>
    </div>

<script>  

$('.ui.modal')
  .modal('show')
;

</script>

问题是提交按钮不起作用。请帮帮我,我做什么?

0 个答案:

没有答案