[jQuery] Replace script tag
Hello!
I used this little code to replace some content with jquery:
<script type="text/javascript">
function Csere() {
$('#lufi').replaceWith('Duma');
}
</script>
111111<script type="text/javascript" id="lufi">Csere()</script>222222
This works fine, but i'd like to eliminate the id attribute from
script tag. I tried $(this).replaceWith('Duma'), and
$(this).parent().replaceWith('Duma'), but neither works. How can I
solve this?
Lay