Touch doesn't work on PHP generated code

Touch doesn't work on PHP generated code

I have some <div> tags generated by php code and some that are hard coded into the page. The touch commands on the hard coded stuff will pop up an alert, but the touch commands on the php generated code will not.

Does anyone have any ideas what I am doing wrong?

Larene