I am trying to use Magento 2 Modal Widget like below but it was not working. It is not showing any error also.
<script>
require(
[
'jquery',
'Magento_Ui/js/modal/modal'
],
function(
$,
modal
) {
$("#ship_now").click(function() {
$('#shipNowContent').modal({
autoOpen:false,
clickableOverlay:true,
type:'popup',
title:'Hello',
});
});
}
);
</script>
Could anyone help me in this regard?