我有一个jQuery对话框如下 -
<div data-role="dialog" id="msg-popup">
<div data-role="header">
<h1>Notification</h1>
</div>
<div data-role="content" id>
<b id="notif-subject"></b>
<p id="notif-popup-content">Test</p>
<a href="#notif-details1" id="show-notif" data-role="button">abc</a>
<a href="#" data-rel="back" data-role="button">Cancel</a>
</div>
</div>
我想动态地将“abc”更改为“pqr”。我该怎么做?我试着做 -
$("#show-notif").text = "pqr";
但它不起作用。我可能做错了什么?