Denis McMahon
12/28/2014 6:46:00 PM
On Sun, 28 Dec 2014 18:12:19 +0100, Haris Bogdanovich wrote:
> Hi
>
> <td onclick='this.innerHTML = 'X';'>--</td>
>
> Why it won't change to X when I click on it ?
You're using single quotes (') to delimit a string inside a string
delimited with single quotes. Use double quotes (") for one of the
strings. (`) might also work (it does in my firefox at least).
--
Denis McMahon, denismfmcmahon@gmail.com