Jump to content

Llamar a función/variable javascript en el tpl


sete

Recommended Posts

Hola, estoy modificando un módulo y para ello necesito que dentro del tpl me reconozca una variable declarada en el mismo archivo dentro de un script. Necesito algo así:

 

<script type="text/javascript">
var variable = "";
function funcion(){
variable = document.getElementById("input").value
}
</script>

 

Codigo

 {if $variable == "true"} Codigo {/if} 

Codigo

 

 

¿Cómo podría hacerlo?

Link to comment
Share on other sites

  • nadie locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...