Jump to content

javascript not working


MDanz

Recommended Posts

this is just part of the code.  when i added the variable 'hide' it stopped working.  basically i want the php variable 'hide' to add on to the variable 'newtext2'.  if i've implemented it wrong,  need help correcting it.

      var newtext2 = obj( "reply" ).value;
var hide = <?php 
$var = "<span id='close'><a href='javascript:setVisible(\"layer1\")' style='text-decoration: none'><font color='#FBB917' face='Arial' size='3px'><strong>Hide</strong></font></a></span>";

echo $var?>;
         obj( "layer1" ).innerHTML = newtext2+hide;

 

 

Link to comment
https://forums.phpfreaks.com/topic/193012-javascript-not-working/
Share on other sites

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.