Docsity

JQuery Assignment and Questions for Exams, Assignments of Web Design and Development

Toggle sidebar
bg1
Objectives
W
e
b
Application Engineering
Lab # 06
Sara Masood
Get basic understanding to the implementation aspects of
Manipulating DOM, specifically using jQuery and JavaScript
Concepts of jQuery animation, selectors class base and id, Sliders.
Lab Activities
1. Write some random paragraphs and Without using IDs, change the background color of all
the even paragraphs of green and odd of yellow.
2. Append a text of your r egistration number at the end of all even paragraphs.
3. Change the text of 5th paragraph to your Registration Number.
4. Count the number of paragraph elements in the Container of above question 1.
5. Make the container of the width and height of 400px Animate that container div by changing
the width and height by 2times onclick event of jQuery.
6. Get the value of a text fields and display in the form of alert. (Hint use the previous designed
form of lab 6 question 2).
7. Make a div which will have id of your last name and a button, on button click it slide down if
it is already slide up, and vice versa.
8. Make the list using Ul tag of html and count the number of li elements in 5nd UL
9. Make div of id your first name Inside that div place the image write an event Using jQuery,
when click on the button will change the original image source to new one and by clicking on
the second button go back to original image.
10.Design the html form of 4 inputs text fields on submit button the sum of first three inputs will
display in the fourth input text field.

Partial preview of the text

Download JQuery Assignment and Questions for Exams and more Assignments Web Design and Development in PDF only on Docsity!

Objectives

W

e

b

Application Engineering

Lab # 06

Sara Masood

Get basic understanding to the implementation aspects of  Manipulating DOM, specifically using jQuery and JavaScript  Concepts of jQuery animation, selectors class base and id, Sliders.

Lab Activities

  1. Write some random paragraphs and Without using IDs, change the background color of all the even paragraphs of green and odd of yellow.
  2. Append a text of your r egistration number at the end of all even paragraphs.
  3. Change the text of 5th^ paragraph to your Registration Number.
  4. Count the number of paragraph elements in the Container of above question 1.
  5. Make the container of the width and height of 400px Animate that container div by changing the width and height by 2times onclick event of jQuery.
  6. Get the value of a text fields and display in the form of alert. (Hint use the previous designed form of lab 6 question 2).
  7. Make a div which will have id of your last name and a button, on button click it slide down if it is already slide up, and vice versa.
  8. Make the list using Ul tag of html and count the number of li elements in 5nd UL
  9. Make div of id your first name Inside that div place the image write an event Using jQuery, when click on the button will change the original image source to new one and by clicking on the second button go back to original image. 10.Design the html form of 4 inputs text fields on submit button the sum of first three inputs will display in the fourth input text field.