Javascript 单击以打开带有预设html的颜色框

Javascript 单击以打开带有预设html的颜色框,javascript,jquery,events,colorbox,Javascript,Jquery,Events,Colorbox,我将开始阅读类似的问题,据我所知,没有一个能回答我的问题 我的页面中有以下HTML: <div id="approve-users-yesno"> <h1>Approve the following users?</h1> <hr /> <ul id='approve-users-list'> </ul> <label>Additional comments: <textarea row

我将开始阅读类似的问题,据我所知,没有一个能回答我的问题

我的页面中有以下HTML:

<div id="approve-users-yesno">
   <h1>Approve the following users?</h1>
    <hr />
   <ul id='approve-users-list'>
</ul>
<label>Additional comments: <textarea rows="5" cols="20" id="approve-users-comment"></textarea></label>
<div style="margin-top: 50px;text-align:right;">
<button class="ulink" onclick='approveUsersSubmit();'>YES</button>
<button class="ulink" onclick='cleanCHKBXSelection("approveUsersIDS");'>NO</button>
</div>
</div>
如果不复制DOM,该怎么办?

根据,使用“内联”选项

根据,使用“内联”选项

$.colorbox({html:$('#approve-users-yesno').html())});
var $stuff = $('#approve-users-yesno');
$.colorbox({inline:true, href:$stuff});