Jump to content

[SOLVED] HELP! Should be an easy fix. Javascript in php


temjin

Recommended Posts

I am having trouble inserting javascript code into my php. I always have trouble with where to place the quotation marks. I have been trying different combinations for hours. I'm sure on of you experts could let point me in the right direction with out even thinking. Here is my code:

 

<? if(year2) 

{

echo "<td><a href="#" onClick=""hideAll();changeDiv('vehicle3','block');">vehicle (3)</a></td>";

}?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.