|
-
July 29th, 2009, 05:01 AM
#1
inser variable into the tag
Hi all,
I am new in Javascript world so this question might be for some very simple but still I could not find a solution for it by seraching the web.
I have a variable:
var myvar="mystring";
that I want to print together with a html tag:
("<span class=\"myclass\">"document.write(myvar)"</span>")
Could someone help me?
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|