Hi all,
I have an "onclick" event like so:
which works, however if I replace "foo" with "foo bar" it fails
I'm assuming it's due to the whitespace, is there a way to escape it that I'm not aware of?
Thanks in advance
I have an "onclick" event like so:
Code:
<span onclick="getElementById('container').value='foo'>foo</span>
Code:
<span onclick="getElementById('container').value='foo bar'>foo bar</span>
Thanks in advance
Comment