semantic ui submit button in modal

0

I have a problem

This is my modal window code:

    <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>

The problem is the submit button does not work. Please help me what i do?

Link: semantic ui submit button in modal
Source: Stack Jquery

Share.

About Author

Leave A Reply