I don't think it's the quotes that are the problem. Those are, after
all, perfectly legitimate characters within a tag. Now, script tags,
OTOH ...

Why don't you just use something server-side?

On Tue, Apr 7, 2009 at 11:53 AM, Rick Faircloth
<r...@whitestonemedia.com> wrote:
> 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