fix(guide): Fix language names in jQuery section of guide (#35271)

* Fix language names

* Fix language name

* Update index.md

* Fix language names

* Change javascript to js
This commit is contained in:
The Coding Aviator
2019-03-02 02:03:52 +05:30
committed by Randell Dawson
parent 421c097f17
commit 48312b3ff9
3 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ title: Target HTML Elements with Selectors Using jQuery
- You can "find" (or select) HTML elements based on their name, id, classes, types, attributes, values of attributes and much more. - You can "find" (or select) HTML elements based on their name, id, classes, types, attributes, values of attributes and much more.
## Example ## Example
```javascipt ```js
//You can select all <p> elements on a page like this = $("p") //You can select all <p> elements on a page like this = $("p")
$(document).ready(function(){ $(document).ready(function(){
$("button").click(function(){ $("button").click(function(){
@ -17,7 +17,7 @@ title: Target HTML Elements with Selectors Using jQuery
## Solution ## Solution
```javascript ```html
<script> <script>
$(document).ready(function() { $(document).ready(function() {
$("button").addClass("animated bounce"); // We are selecting the button elements and adding "animated bounce" class to them. $("button").addClass("animated bounce"); // We are selecting the button elements and adding "animated bounce" class to them.

View File

@ -5,7 +5,7 @@ title: Target the Parent of an Element Using jQuery
## Solution ## Solution
```js ```html
<script> <script>
$(document).ready(function() { $(document).ready(function() {
$("#target1").parent().css("background-color", "red"); // Selects the parent of #target1 and changes its background-color to red $("#target1").parent().css("background-color", "red"); // Selects the parent of #target1 and changes its background-color to red

View File

@ -4,7 +4,7 @@ title: Target the Same Element with Multiple jQuery Selectors
## Target the Same Element with Multiple jQuery Selectors ## Target the Same Element with Multiple jQuery Selectors
## Solution ## Solution
```javascript ```html
<script> <script>
$(document).ready(function() { $(document).ready(function() {
$("button").addClass("animated"); // Target elements with type "button" and add the class "animated" to them. $("button").addClass("animated"); // Target elements with type "button" and add the class "animated" to them.