# Javascript quotes inside quotes (eval ?)

**URL:** <https://forum.kirupa.com/t/javascript-quotes-inside-quotes-eval/250703>\
**Category:** Uncategorized\
**Created:** [January 31, 2008, 6:28pm UTC](https://forum.kirupa.com/t/javascript-quotes-inside-quotes-eval/250703 "2008-01-31T18:28:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mlk](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@mlk](https://forum.kirupa.com/u/mlk)\
**Post date:** [January 31, 2008, 6:28pm UTC](https://forum.kirupa.com/t/javascript-quotes-inside-quotes-eval/250703/1 "2008-01-31T18:28:21Z")

</div>

Hey there gang, I’ve moved my server-side problem to a client-side problem, here is my ugly code (I’m about to write a function for it, but still want to know how/if it can be done):

> 

\<a href=“…” onClick=[COLOR=“Red”] **"** [/COLOR]getThis(‘toolbox/en\_email.php’,'email= **'** +document.getElementById([COLOR=“Red”] **'** [/COLOR]emailtxtbx[COLOR=“Red”] **'** [/COLOR]).value,‘contentsDiv’)[COLOR=“Red”] **"** [/COLOR]\>Clicky\</a\>

Now as you notice I’ve got little problems with quotes =/

how do i add the getElementById without screwing my onClick function (short of do a function for all this ?)

cheers !

mlk
