I want to add some javascript in wordpress, when something like
if(iNum==0&&iNum+1!=l)
it show wrong, in the source code I find ‘&’ become ‘& # 0 3 8 ;’ how to solve? Thanks.
if(iNum==0& # 0 3 8 ; & # 0 3 8 ; iNum+1!=l)
(here I type some space for show the code)
Looks like you can’t add javascript like that to post content. See this for workarounds: http://codex.wordpress.org/Using_Javascript
Basically you’ll need to move the code to a js file and then include it in the post.
Great, it works. by the way, why I also add two jquery plungin in it. why
<script type="text/javascript">
var $j = jQuery.noConflict();
...
</script>
can work in the head part? or for the better run, I shall also move the code to a js file and then include it in the post? Thank u.