servvs Posted June 1, 2008 Share Posted June 1, 2008 Ok so I am having trouble with one line of code. I am sure there is an easy fix to this but I just can't seem to figure it out or find it on the net. echo '<a href="#" onclick="toggleItem('myTbody')">Toggle</a>' I know what I am doing wrong its the ('myTbody') but not sure what to do to fix it Link to comment https://forums.phpfreaks.com/topic/108290-php-javascript-trouble/ Share on other sites More sharing options...
LooieENG Posted June 1, 2008 Share Posted June 1, 2008 echo '<a href="#" onclick="toggleItem(\'myTbody\')">Toggle</a>' Link to comment https://forums.phpfreaks.com/topic/108290-php-javascript-trouble/#findComment-555178 Share on other sites More sharing options...
servvs Posted June 1, 2008 Author Share Posted June 1, 2008 Wow, I can't believe I couldn't remember that, I just go so used to alternating " and ' depending on which one i started the echo with, lol, ty Link to comment https://forums.phpfreaks.com/topic/108290-php-javascript-trouble/#findComment-555181 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.