Coder Social home page Coder Social logo

kwk-l2-jquery-selectors-lab-sgharms-test-webdev-fund's Introduction

jQuery Selectors Lab

Objectives

  • Write jQuery selectors to select different HTML elements

Getting Started

In js/selectors.js write the code necessary to select 5 different elements from the index.html page. There are tests to keep you on track!

Instructions

  1. Write a function, h1Selector, that selects all <h1> elements and returns them using an element selector.

  2. Write a function, liInOlSelector, that selects and returns all <li> inside of <ol> using a descendant selector.

  3. Write a function, linkSelector, that selects and returns the <a> that is inside of the element that has both an id of box4 and a class of box5.

  4. Write a function, imageSelector, that selects and returns the image of the cat that has the alt text equal to "cat sleeping".

  5. Write a function, checkboxInputSelector, that selects and returns all the checkbox inputs

kwk-l2-jquery-selectors-lab-sgharms-test-webdev-fund's People

Contributors

annjohn avatar aviflombaum avatar ipc103 avatar pajamaw avatar victhevenot avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.