Issues 1:
$('#msg').html($('#quote').text());
now changed quote for a variable – quotevar:
$("#msg").html(quotevar);
How would I incorporate the text function there to get the same result I did with #quote? I can’t even seem to understand how to properly handle variables and functions in jquery.
Issue 2:
I need to add [quote] [/quote] bbode tags around my variable quotevar. This is actually the reason I created the variable in issue 1.
If it’s possible to do it without the new var using this:
$('#msg').html($('#quote').text()); then I’d like to know how that is done also.
I assume the wrap() function is needed to add the tags.
if I understand you correctly, are you just wanting to do this?
or using
wrap()