Jquery NOTY 更新输入或 div 通知 window?

Jquery NOTY update input or div in notification window?

我正在显示一个带有消息的通知。我想更新显示的消息,所以通知会显示实时更新。

我试过了,noty 有一个显示 'TEST' 的文本输入字段,但它永远不会更新为 say HELLO。

var n = noty({ type: 'information', layout: 'center', text: "<input id='msg' name='msg' value='TEST' />", 
dismissQueue: true, theme: 'relax', modal: true, maxVisible: 1 })

$('#msg').val('HELLO')

这可以做到吗? 谢谢

来自documentation

new Noty({
   ...
   text: 'Some notification text',
   ...
 }).show();

片段:

new Noty({
    type: 'information',
    layout: 'center',
    text: "<input id='msg' name='msg' value='TEST' />",
    dismissQueue: true,
    theme: 'relax',
    modal: true,
    maxVisible: 1
}).show();
$('#msg').val('HELLO')
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://rawgit.com/needim/noty/master/lib/noty.css">
<script src="https://rawgit.com/needim/noty/master/lib/noty.min.js"></script>