你可以在jquery确认对话框中加粗文本吗?(can you bold text in a jquery confirm dialog box?)
我有以下jquery代码:
<script type="text/javascript"> $(document).ready(function() { $(".deleteuser").click(function(){ return confirm("Are you sure you want to delete this user?")}); }); </script>我希望能够在确认对话框中加粗文本...所以类似于:(伪代码)
$(".deleteuser").click(function(){ return confirm("Are you sure you want to delete this user? <b>Note:</b> It can't be undone!")});谢谢!
I have the following jquery code:
<script type="text/javascript"> $(document).ready(function() { $(".deleteuser").click(function(){ return confirm("Are you sure you want to delete this user?")}); }); </script>I'd like to be able to bold the text inside the confirm dialog box ... so something like: (pseudocode)
$(".deleteuser").click(function(){ return confirm("Are you sure you want to delete this user? <b>Note:</b> It can't be undone!")});Thank you!
最满意答案
您无法使用标准的javascript弹出窗口执行此操作。
您需要使用自定义库,例如下面之一:
jQueryUI的 MooTools的 原型 Scriptaculous的 雅虎用户界面You can't do this with standard javascript popups.
You'll need to use a custom library such as one of the below:
jQueryUI MooTools Prototype Scriptaculous Yahoo User Interface更多推荐
发布评论