dynamically insert javascript into <head> tag.
Posted
by James123
on Stack Overflow
See other posts from Stack Overflow
or by James123
Published on 2010-04-30T20:38:08Z
Indexed on
2010/04/30
20:57 UTC
Read the original article
Hit count: 245
I am using CEWP (webpart) and putting this code in there. But this code is not going inside <head>
tag. I need to insert this code in <head>
tag,
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$("*").each(function () { if ($(this).children().length == 0) { $(this).text($(this).text().replace('Respuesta','Responder')); } });
</script>
How can I do this? How this code will work in CEWP webpart?
© Stack Overflow or respective owner