mblair415 / jquery-dom-lab

A lab for practicing DOM manipulation with jQuery

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jQuery Selector Challenge - solutions

To get started, clone this repo.

Open index.html. In your Chrome Javascript Console, use jquery to select the element containing the words "Hello There" with as many different selectors as you can think of:

<!DOCTYPE html>
<body>
  <div class="container">
    <div class="row">
      <div class="col-sm-6">
        <div id="greeting">Hello There</div>
      </div>
    </div>
  </div>
</body>

In the file scripts/app.js, try the following challenges:

  1. Get the value "Hello There".
  2. Change (or set) the value to "Hola".
  3. Add an h1 to the page that says "A Spanish Greeting".
  4. Add a second greeting ("Que tal?"), in a second column to the right of the first.
  5. Add the class "blue" to both greetings.

Your goal is for you to open index.html in your browser, and have your solutions should all run!

About

A lab for practicing DOM manipulation with jQuery


Languages

Language:HTML 66.7%Language:JavaScript 29.4%Language:CSS 3.9%