You are correct of course, as it stands the code doesn’t make sense. But as I explained in an earlier post post this is especially written experimental to test what I’m doing wrong. So, I’m seeing what happens when trigger is 1.
The solution is as if often the case obvious – I’d forgotten to include a link to jQuery. Also
if (trigger = 1)should be
if (trigger == 1)
Thanks to you both for your input.