# Help with jQuery on Html page

**URL:** <https://forum.freecodecamp.org/t/help-with-jquery-on-html-page/122923>\
**Category:** General\
**Created:** [June 3, 2017, 2:51am UTC](https://forum.freecodecamp.org/t/help-with-jquery-on-html-page/122923 "2017-06-03T02:51:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kenvng](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kenvng/32/159211_2.png) [@kenvng](https://forum.freecodecamp.org/u/kenvng)\
**Post date:** [June 3, 2017, 2:51am UTC](https://forum.freecodecamp.org/t/help-with-jquery-on-html-page/122923/1 "2017-06-03T02:51:08Z")

</div>

hi, while working on FCC assignments. I took some contents of the FCC playground and slap on html to play around with but it didn’t work the way it was intended to. Can anyone please look at this html page and tell me what I am missing? Thanks.

```auto
<!DOCTYPE html>
<html lang="en">
<head>
	<title>jQuery Playground</title>
	<meta charset="UTF-8">
	
	
	<!-- jQuery Library -->
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
	<!-- jQuery Mobile -->
	<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jquerymobile/1.4.5/jquery.mobile.min.css">
	<script src="https://ajax.googleapis.com/ajax/libs/jquerymobile/1.4.5/jquery.mobile.min.js"></script>

	<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

	<!-- Link below to add bootstrap to your page -->
	<!-- <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"/> -->
	<!-- Latest compiled and minified CSS -->
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
	<!-- Optional theme -->
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
	<!-- Latest compiled and minified JavaScript -->
	<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>

	<!-- STYLES GO HERE -->
	<!-- STYLES END HERE -->

	<!-- jQuery -->
	<script>
	  $(document).ready(function(){
	  	// 
	  	$("#target1").css("color", "red");
	  	// addclass function targets the button element to make it bounces
	    $("button").addClass("animated bounce");
	    // addclass function targets the class .well to make it shakes
	    $(".well").addClass("animated shake");
	    // addclass function targets the id #target3 to make it fade out
	    $("#target3").addClass("animated fadeOut");
	    // function .prop() allows us to adjust the properties of elements; in this case, it disabled element with id #target1
	    $("#target1").prop("disabled", true);
	  });
	</script>
	<!-- End -->

</head>

<body>

<!-- Only change code above this line. -->

	<div class="container-fluid">
	  <h3 class="text-primary text-center">jQuery Playground</h3>
	  <div class="row">
	    <div class="col-xs-6">
	      <h4>#left-well</h4>
	      <div class="well" id="left-well">
	        <button class="btn btn-default target" id="target1">#target1</button>
	        <button class="btn btn-default target" id="target2">#target2</button>
	        <button class="btn btn-default target" id="target3">#target3</button>
	      </div>
	    </div>
	    <div class="col-xs-6">
	      <h4>#right-well</h4>
	      <div class="well" id="right-well">
	        <button class="btn btn-default target" id="target4">#target4</button>
	        <button class="btn btn-default target" id="target5">#target5</button>
	        <button class="btn btn-default target" id="target6">#target6</button>
	      </div>
	    </div>
	  </div>
	</div>

</body>
</html>

```

FYI, All the html and bootstrap css working find… Just the jQuery is not working. Except for the #target1 which the color text is red. So jQuery does work but not everything - animated (not working). I tried flipping import library around but nothing works. Thank you very much in advance.

---

<div class="post-metadata">

**Author:** ![kevcomedia](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kevcomedia/32/125737_2.png) [@kevcomedia](https://forum.freecodecamp.org/u/kevcomedia)\
**Post date:** [June 3, 2017, 3:27am UTC](https://forum.freecodecamp.org/t/help-with-jquery-on-html-page/122923/2 "2017-06-03T03:27:47Z")

</div>

> [@kenvng](#):
>
> So jQuery does work but not everything - animated (not working).

Those animations are not part of jQuery. You need to import another library called Animate.css. Here’s a URL: `https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css`

---

<div class="post-metadata">

**Author:** ![abhiyan52](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/abhiyan52/32/72029_2.png) [@abhiyan52](https://forum.freecodecamp.org/u/abhiyan52)\
**Post date:** [June 3, 2017, 8:06am UTC](https://forum.freecodecamp.org/t/help-with-jquery-on-html-page/122923/3 "2017-06-03T08:06:27Z")

</div>

I was also having the same problem.thanks for the solution

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 9:37am UTC](https://forum.freecodecamp.org/t/help-with-jquery-on-html-page/122923/4 "2021-01-17T09:37:25Z")

</div>

Closed on January 17, 2021, 9:37am UTC


