I have a button in the information or help form (the red button with the "i")
I am with semantic ui and according to the documentation I can generate a modal defining the following:
<div class="ui modal">
<i class="close icon"></i>
<div class="header">
Modal Title
</div>
<div class="image content">
<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>
<div class="actions">
<div class="ui button">Cancel</div>
<div class="ui button">OK</div>
</div>
</div>
that would be the content of the modal... while I must define
$('.ui.modal')
.modal()
;
Now... I don't know how to bind the button (let's say it has id="help") to the event of clicking on it to show that modal message...
Considering that you use jQuery for Semantic, you can use
.click()
to open the modal window: