I would like to be able to do something as simple as

<p id="<script>myGlobalVariable</script>">xyz</p>,

but apparently the "" marks are a problem.

 

I'm able to output a global variable value like this:

<p>The value of myGlobalVariable is <script>myGlobalVariable</script>.</p>

 

Is there some way to use global variable values with an id attribute?

 

Thanks,

 

Rick

 

----------------------------------------------------------------------------
-----------------------------------------------------------

"It has been my experience that most bad government is the result of too
much government." - Thomas Jefferson

Reply via email to