Drupal - insertar var en jquery
AUTOR PREGUNTA #1
-
¿Tienes la misma pregunta? Yo también
Esto también te interesa!
PREGUNTAS SIMILARES
#2
$(document).ready(function(){
$("#comment-delete-<?php print $variable ?>").click(function(){ $("div.comment-<?php print $variable ?> span.body").replaceWith("nuevo texto"); }); })
#3
<?php
drupal_add_js (
' $(document).ready (function() {
$("#comment-delete-' . $variable . '").click (function() {
$("div.comment-' . $variable . ' span.body").replaceWith ("new text");
});
}) ','inline');
?>