var val = '124';
function imagepop(nval) {
val = nval;
}
$(document)
.ready(function () {
$('.ui.selection.dropdown').dropdown();
$('.ui.menu .ui.dropdown').dropdown({
on: 'hover'
});
$('#'+val).popup({
popup: $('.fluid.popup'),
on: 'click'
});
});
我试图弹出来自数据库HTML代码的动态内容,如下所示
<div class="extra">
<div id="<?php echo$row['idproperty']; ?>" class="ui more primary button" onclick="imagepop(<?php echo$row['idproperty']; ?>)">
More
</div>
<div class="ui fluid popup top left transition hidden" >
<p><b>Description</b><?php echo$row['description']; ?></p>
<div class="ui three column center aligned grid">
<div class="column"> </div>
</div>
</div>
idproperty
是从数据库获取的一些数字我需要在弹出窗口中显示每个数据请帮我解决这个问题