Skip to content Skip to sidebar Skip to footer

Why I Cant Use JQuery Functionality

I have jquery-2.1.3.js library in the /opt/lampp/htdocs directory and to test it I included it in a html file

Some paragraph

Solution 1:

script elements can have a src attribute or content, but not both. If they have both, the content is ignored (the content is considered "script documentation," not code).

Use another script block for your jQuery script

<script src="jquery-2.1.3.js">
</script>
<script>
    $("p").css("color","orange")
    $("body").css("background","#00ff00")
</script>

Post a Comment for "Why I Cant Use JQuery Functionality"