I have this code:
$('#output').html("<strong>id:</strong>"+id);
then
<div id="output">this element will be accessed by jquery and this text replaced</div>
The above works fine but what I need is for the output to go into an alert so....
<a href="#" onclick="alert('OUTPUT GOES HERE')">Alert Me</a> <- See here
How can this be done?
<b>will be deprecated