Gabriel, Try it out. Fixed, works without reloading the page.
It also works without JavaScript.
Koeing he then completes)))
"\n" . '<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>' .echo "
<script type='text/javascript&#