Claro, no sabía que había ese hook por eso no lo sugerí, gracias Edson.
<script>
function agregar(texto)
{
var id = "message";
$(id).value += texto;
$(id).focus();
}
</script>
Ponlo así:
<script type="text/javascipt">
function agregar(texto)
{
var id = "message";
$(id).value += texto;
$(id).focus();
}
</script>
<script>
function agregar(texto)
{
var id = "message";
$(id).value += texto;
$(id).focus();
}
</script>
Ponlo así:
<script type="text/javascipt">
function agregar(texto)
{
var id = "message";
$(id).value += texto;
$(id).focus();
}
</script>