我有这个代码:
$('#output').html("<strong>id:</strong>"+id);
然后
<div id="output">this element will be accessed by jquery and this text replaced</div>
以上工作正常,但我需要的是输出进入警报所以....
<a href="#" onclick="alert('OUTPUT GOES HERE')">Alert Me</a> <- See here
如何才能做到这一点?