I try to paste a PHP $value to the JavaScript to show it but it fails to get the value.
<script language="JavaScript">
function here(elemento){
alert (elemento);
}
</script>
<body>
<?php $value= 1?>
<!--Al hace llamado a la función solo tienes que idicar el nombre del DIV entre parentesis -->
<p><a href="#" onclick="here('.$value.')" title="">Mostrar / Ocultar</a></p>
<div id="contenido_a_mostrar">
<p>Este contenido tiene que mostrarse con el link</p>
</div>
</body>
I try this <p><a href="#" onclick="here('<? php echo $value; ?>')" title="">Mostrar / Ocultar</a></p>
but the alert show me this <?php echo $value?>
You’ll have to
echothe value into the HTMLdocs