I am using it first time and confused how to open modal on Button
Modal Open
Where I write this code to open modal
$('.test.modal')
.modal('show')
;
Please Guide me I am trying it since 2 hours on buton
I write this in script
$(document).ready(function(){
$("#mymodalg").click(function(){
$('.test.modal').modal('show');
});
});
and put button like this with id mymodalg
and now its working . Thanks
This is ages old, but still comes up at the top of goodle for 'semantic ui modal open on click' so putting the official version in here:
$('.test.modal')
.modal('attach events', '#mymodalg', 'show')
;
From modal examples page
Most helpful comment
I write this in script
and put button like this with id mymodalg
and now its working . Thanks