I'm having trouble printing a URL in a textbox form element:
the text is actually printing out: View my <a href="#">Book</a> instead of typing out a link.
Code:
<script>
$(function() {
$('#introphoto').click(function() {
var areaValue = $('#messagebox').val();
$('#messagebox').val(areaValue + 'View my <a href="#">Book</a>');
});
});
</script>
the text is actually printing out: View my <a href="#">Book</a> instead of typing out a link.