SlideShare a Scribd company logo
1 of 128
Unit – II
Building Interactive Web Pages with
jQuery:Building Interactive Web Pages with
jQuery:
Contents
Dynamically Accessing and Manipulating Web Pages with JavaScript and
jQuery – Working with Window, Browser, and Other Non-Web Page Elements
– Enhancing User Interaction Through jQuery Animation and Other Special
Effects – Interacting with Web Forms in jQuery and JavaScript – Creating
Advanced Web Page Elements in jQuery.
Dynamically Accessing and Manipulating Web Pages with JavaScript
and jQuery
1. Accessing Browser and Page Element Values
2. Dynamically Manipulating Page Elements
3. Dynamically Rearranging Elements on the Web Page
1.Accessing Browser and Page Element Values
Getting Mouse Position
The mouse position is accessible from the event object when a mouse event is
triggered
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script></script>
<script>
$(document).ready(function(){
$(document).mousemove(function(event){
$("span").text("X: " + event.pageX + ", Y: " + event.pageY);
});
});
</script>
</head>
<body>
<p>The mouse pointer position is at: <span></span></p>
</body></html>
Getting and Setting Values
jQuery provides the .val() method to retrieve and set the value
Getting and Setting Attributes and Properties in jQuery
● jQuery provides the .attr() and .prop() methods to get and set the attributes and
properties of these elements.
● The .attr(attribute, [value]) method allows you to specify an attribute name only to
get the current value, as well as an optional value to set the current value.
● The .prop(property, [value]) method allows you to specify the property to get the
current value and an optional value to set the current value.
● Difference: As of jQuery 1.6, the .prop() method provides a way to explicitly
retrieve property values, while .attr() retrieves attributes.
○ For example, selectedIndex, tagName, nodeName, nodeType,
ownerDocument, defaultChecked, and defaultSelected should be
retrieved and set with the .prop() method.
○ Prior to jQuery 1.6, these properties were retrievable with the .attr()
method, but this was not within the scope of attr. These do not have
corresponding attributes and are only properties.
Example: (prop())
<html><head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script></script>
<script>
$(document).ready(function () {
$("button").click(function () {
$("#d1").prop("font-size", "5px");
alert($("#d1").prop("font-size"));
});
});
</script></head>
<body>
<h1 style="color:green">PROPS EXAMPLE</h1>
<button>Property</button>
<br>
<div id="d1"></div>
</body>
</html>
Example: (attr() and val())
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("img").attr("width", "500");
$("input:text").val("KEC");
});
});
</script></head>
<body>
<img src="img_pulpitrock.jpg" width="284" height="213"><br>
<p>Name: <input type="text" name="user"></p>
<button>click</button>
</body>
</html>
Getting and Setting CSS Properties
● jQuery provides css(property, [value]) method to get and set CSS values
● The .css() method is used to pass a map object with properties and values
● The .css() method is also used to set the margin, padding, float, and font-
weight attributes at the same time
Example: (css())
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("p").css("color", "red");
});
});
</script>
</head>
<body>
<p>This is a paragraph.</p>
<button>change color</button>
</body>
</html>
Getting and Setting Element Size
Example: (innerHeight() and innerWidth())
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("#p1").text($("div").innerWidth());
$("#p2").text($("div").innerHeight());
});
});
</script></head><body>
<div style="height:100px;width:300px;padding:10px;margin:3px;
border:1px solid blue;background-color:lightblue;"></div><br>
<p id="p1"></p>
<p id="p2"></p>
<button>Display the innerheight and innerwidth of div</button>
</body>
</html>
Getting and Setting Element Position
● jQuery provides the .position([position]) method to get the position relative to the
offset parent.
● The .offset([position]) method provides the position relative to the document.
● Both of these methods can be called with no argument.
● They return a simple object with a left and right attribute that represent the
number of pixels from the left and top of document when using .position() or
offset parent when using .offset().
Example: (innerHeight() and innerWidth())
<html><head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
var x = $("p").offset();
alert("Top: " + x.top + " Left: " + x.left);
var z = $("p").position();
alert("Top: " + z.top + " Left: " + z.left);
});
});
</script>
</head>
<body>
<p>This is a paragraph.</p>
<button>click to display the offset and position</button>
</body>
</html>
Accessing the Class
● The simplest way to get the classes associated with an HTML element is to look at
the className attribute of the DOM object.
● The className attribute is a string containing the names of the class(es)
attached to the element.
Getting Browser and Screen Size and Color Information
● The Screen object provides the width and height attributes that are the screen
resolution dimensions
● The colorDepth attribute of the Screen object is used to get the supported
colors by the screen .This returns a value of the number of bits supported
● The browser dimensions can be accessed from the innerWidth, outerWidth,
innerHeight, and outerHeight attributes of the window object available in
JavaScript.
Example: (attr() to get class name)
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
var className = $("p").attr("class");
alert(className);
});
});
</script>
</head>
<body>
<p class="p1">This is a paragraph.</p>
<button>click</button>
</body>
</html>
Example:
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$("#p1").text("X: " + screen.colorDepth);
$("#p2").text("X: " + screen.width);
$("#p3").text("X: " + screen.height);
});
</script>
</head>
<body>
<p>width, height and color depth<span></span></p>
<p id="p1"></p>
<p id="p2"></p>
<p id="p3"></p>
</body></html>
2.Dynamically Manipulating Page Elements
1.Adding Page Elements Dynamically(Adding Page Elements in JavaScript)
● There are several ways to add HTML elements dynamically.
● The most basic is to set the innerHTML attribute of a container object
to an HTML string.
Example:
<html>
<body>
<h1>Adding page dynamically</h1>
<p id="p1">paragraph 1.</p>
<p id="p2"></p>
<script>
document.getElementById("p2").innerHTML = "paragraph 2";
var para = document.createElement("p");
var node = document.createTextNode("This is new para.");
para.appendChild(node);
var element = document.getElementById("p2");
element.appendChild(para);
</script>
</body>
</html>
Adding Page Elements in jQuery
● The html() method sets or returns the content (innerHTML) of the selected elements.
<html><head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
var newP = $("<p></p>");
newP.html("Paragraph 2");
$("p").append(newP);
});
});
</script></head>
<body>
<h1> Adding page dynamically </h1>
<p> Paragraph 1 </p>
<button>click to set p</button>
</body></html>
2.Removing Page Elements(javascript)- removeChild() method removes an element's child.
<html><head>
<script type="text/javascript">
function myFunction()
{
var list = document.getElementById("myList");
list.removeChild(list.childNodes[0]);
}
</script>
</head>
<body>
<ul id="myList"><li>Coffee</li><li>Tea</li><li>Milk</li></ul>
<p>Click the button to remove the first item in the the list.</p>
<input type="submit" value="replace" onclick="myFunction()">
</body>
</html>
Removing Page Elements(jQuery)- remove() method removes the
selected elements
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("#p1").remove();
});
});
</script>
</head>
<body>
<p id="p1">This is a paragraph.</p>
<p>This is another paragraph.</p>
<button>Remove first p elements</button>
</body></html>
3.Replacing Elements in jQuery
● The .html() method in jQuery is extremely useful for replacing the contents
of an existing element with completely different content.
● Another method of replacing a set of elements in the document with new
content is the .replaceAll(target) method. This method replaces the set of
elements that match the target selector with those of the current set.
● The final method is to use .replaceWith(newContent), which does the
opposite of .replaceAll(). The .replaceWith() function replaces the elements
in the current set with the content specified.
Example
<html><head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$( "div.second" ).replaceWith( "<h2>New heading</h2>" );
$("<h2>Hello world!</h2>").replaceAll("p");
});
});
</script></head>
<body>
<div>
<div class="first">Hello</div>
<div class="second">And</div>
<div class="third">Goodbye</div>
</div>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
<button>click</button>
</body></html>
4.Inserting Elements in jQuery-The .after() and .before() methods
are used to to pass in multiple objects to insert, separated by a comma.
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("p:eq(1)").after($("<p>after Paragraph</p>"));
$("p:eq(1)").before($("<p>before Paragraph</p>"));
});
});
</script>
</head>
<body>
<p>para 1</p>
<p>para 2</p>
<button>click</button>
</body>
</html>
5.Changing Classes-
● The addClass() and removeClass methods are used to change the classes of
the html element
● .toggleClass(className [, switch) method. In addition to the className, you
can specify a true or false for the optional switch parameter indicating to
turn the class on or off.
○ Example -$("span").toggleClass("active", true);
$("span").toggleClass("inactive", false);
<html><head>
<style>
.intro {
color: red;
}
</style>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("#p1").addClass("intro");
$("#p2").removeClass("intro");
});
});
</script></head>
<body>
<p id="p1">welcome</p>
<p id="p2" class="intro">welcome</p>
<button>change color</button>
</body></html>
6.Toggling Visibility
● To display an element using jQuery, call the .show() method on that object. Then
to hide the element, use the .hide() method.
● Example
○ jObj.hide();
○ jObj.show();
● To make an element invisible, set the opacity CSS property to 0.
For example:
jObj.css("opacity", "0");
● To make the element visible again, set the opacity back to 1:
jObj.css("opacity", "1");
<html><head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("h1").hide();
});
});
</script>
</head>
<body>
<div style="background-color:lightblue;"></div><br>
<h1> welcome </h1>
<button>click</button>
3.Dynamically Rearranging Elements on the Web Page
Adjusting the z-index
● The z-index is a CSS property that specifies the position of an HTML
element with respect to other elements
● The z-index specifies the order of stack for an element. The element
which has the highest order of stack always appear in front of the
element which have the lowest order of stack
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
</head>
<script>
$(document).ready(function() {
$("#id1").on("click", function() {
alert("The first div z-index value is "+$('#id1').css('z-index'));
});
$("#id2").on("click", function() {
alert("The second div z-index value is "+$('#id2').css('z-index'));
});
});
</script>
<body>
<br><br>
<div id = "id1"; style = "background-color:red;width :300px;height :100px;top :10px;left
:80px;position :relative;z-index :2;">
</div>
</div>
<div id = "id2"; style = "background-color:yellow;width :300px;height :100px;top :-60px;left
:35px;position :relative;z-index :3;">
</div>
</div>
</body>
</html>
Working with Window, Browser, and Other Non-Web Page
Elements
1. Understanding the Screen Object
2. Using the Window Object
3. Using the Browser Location Object
4. Using the Browser History Object
5. Controlling External Links
6. Adding Pop-up Boxes
7. Setting Timers
1.Understanding the Screen Object
Screen object properties
Example:
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$("#p1").text("X: " + screen.colorDepth);
$("#p2").text("X: " + screen.width);
$("#p3").text("X: " + screen.height);
});
</script>
</head>
<body>
<p>width, height and color depth<span></span></p>
<p id="p1"></p>
<p id="p2"></p>
<p id="p3"></p>
</body></html>
2.Using the Window Object
The window object provides access to the browser window and it is used to
get information such as the dimensions and position of the browser window.
Accessing the Window Object Properties
Example:
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("#p1").text("height:"+window.outerHeight);
$("#p2").text("width:"+window.outerWidth);
});
});
</script></head><body>
<p id="p1"></p>
<p id="p2"></p>
<button>Display the innerheight and innerwidth of window</button>
</body></html>
Using the Window Object Methods
● The window object also provides a set of methods that allow you to
create and manage additional child windows from your JavaScript code.
Window Object Methods
Example:
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$("#b1").click(function(){
myWindow = window.open("", "", "width=200,height=100");
});
$("#b2").click(function(){
myWindow.close();
});});</script></head><body>
<h1> window methods </h1>
<button id="b1">open window</button>
<button id="b2">close window</button>
</body></html>
3.Using the Browser Location Object
Using the Browser Location Object
● The browser location object is used to access the current location in the
browser.
● It is also used to access all the URL information as well as reload the
current page or load a new one in the current window.
Location Object properties and methods
Example:
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
location.assign("https://www.w3schools.com");
});
;});
</script>
</head><body>
<h1> location methods </h1>
<button>assign</button>
</body></html>
4.Using the Browser History Object
● The history object provides access to the browser navigation history, and
it is used to move forward and backward dynamically without the user
needing to click the browser Forward and Back buttons
● Navigating Forward in the Browser History
○ The history.forward() is used to move to the next URL in the history
○ history.go(n) is also used, where n is a positive number that represents the number of
steps to move forward.
● Navigating Backward in the Browser History
○ history.back() is used to move to the previous URL in the history,
○ history.go(n) is also used , where n is a negative number that represents the number of
steps to move backward.
Example:
a.html
<html>
<body>
<h1>The Window History Object</h1>
<h2>Page 1</h2>
</body>
</html>
C.html
<html>
<body>
<h1>The Window History Object</h1>
<h2>Page 3</h2>
</body>
</html>
Example:
b.html
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$("#b1").click(function(){
window.history.forward();
});
$("#b2").click(function(){
window.history.back();
});
;});</script></head>
<body>
<h1>The Window History Object</h1>
<h2>Page 2</h2>
<button id="b1">forward</button>
<button id="b2">back</button>
</body></html>
Output for forward click
Output for back click
5.Controlling External Links
● An important part of dynamic web programming also involves controlling
the linkage outside of the web page.
Stopping External Links on a Web Page
● To lock down external links from a web page, click event handler is added
to the <a> tags that link externally and then call preventDefault() on the
click event object.
● The preventDefault() method is used to prevent the browser from
executing the default action of the selected element.
Forcing Links to Open in New Browser Windows
● To force external links to open in a new window, set the target attribute
to “_blank” for <a> tags that link externally
Example:
<html><head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$("a").click(function(event){
event.preventDefault();
});
});
</script></head>
<body>
<a href="https://w3schools.com/">Go to W3Schools.com</a>
<p>The preventDefault() method will prevent the link above from following the URL.</p>
</body></html>
Example:
<html>
<body>
<h1>The a target attribute</h1>
<p>Open link in a new window or tab:
<a href="https://www.w3schools.com" target="_blank">Visit W3Schools!</a>
</p>
</body>
</html>
6.Adding Pop-up Boxes
Notifying the User
● The most common type of pop-up is an alert pop-up designed to notify the
user that something has happened.
● window.alert() method is used to create a simple alert message
Asking the User to Confirm
● The next most common type of pop-up is a confirmation pop-up designed to
notify the user that something is about to happen
● window.confirm() method is used to create a confirmation dialog box that
allows the user to respond with yes or no
Prompting the User for Input
● The prompt displays a text box that allows the user to type a text string into
the pop-up box
● window.prompt() method is used to create a prompt dialog that allows the
user to input a single text string as input
Example:
<html><head><script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$("#b1").click(function(event){
alert("alert message");
});
$("#b2").click(function(event){
confirm("confirm your transaction");
});
$("#b3").click(function(event){
var a=prompt("enter your name");
$("p").html("hello "+a);
});
});</script></head>
Example:
<body>
<h1> Popup boxes </h1>
<button id="b1"> alert </button>
<button id="b2"> confirm </button>
<button id="b3"> prompt</button>
<p></p>
</body></html>
7.Setting Timers
● Another useful feature of JavaScript is the capability to set timers that
execute a function or evaluate an expression after a certain amount of
time or on a specific interval.
Adding a Delay Timer
● To delay the execution of code for a certain amount of time, use the
setTimeout(code, ms) method, where code is either a statement or a
function that will execute when the time expires. ms is the number of
milliseconds.
Adding a Reoccurring Timer
● The setInterval(code, ms) method accepts a code statement or a
function name and milliseconds as arguments.
Example:
<html><head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
setTimeout(myGreeting, 5000);
function myGreeting() {
$("h2").html("Happy Birthday!");
setInterval(displayHello, 1000);
function displayHello() {
$("h3").append("hai");
}
}});</script></head>
<body>
<h1>Setting timers</h1>
<h2></h2>
<h3></h3>
</body></html>
Enhancing User Interaction Through jQuery Animation and Other
Special Effects
1. Understanding jQuery Animation
2. Animating Show and Hide
3. Animating Visibility
4. Sliding Elements
5. Creating Resize Animations
6. Implementing Moving Elements
1.Understanding jQuery Animation
● jQuery animation is the process of modifying a property of an HTML element
from one value to another in an incremental fashion visible to the user
Animating CSS Settings
● The .animate() jQuery method is used to implement animations on one or more CSS
properties.
Animating options
● complete
● duration
● easing(linear,swing(bydefault))
● queue
● step
● specialEasing
Animation Options
Example:
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("#b1").animate(
{height:200,width:200},1000,"linear");
});
});
</script></head>
<body>
<button>Animate height</button>
<div id="b1" style="background:green;height:100px;width:100px"></div>
</body>
</html>
Understanding Animation Queues
● By default, jQuery comes with queue functionality for animations.
● jQuery creates an "internal" queue with multiple ‘animate’ method calls. it runs the animate
calls ONE by ONE.
Stopping Animation
● The jQuery stop() method is used to stop an animation or effect before it is finished.
● $("img").stop(true);
○ stops all animations on images and removes the animations from the queue
● $("img").stop(true, true);
○ Calling .stop(true, true), with the jumpToEnd option set to true, causes the currently
executing animation to jump to the end value immediately, clear the queue, and then stop
all animations
<html>
<head>
<title>jQuery</title>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function() {
$("#a").click(function(){
$("div").animate({height: 300,width: 300},{duration: 1500,queue: false});
$("div") .animate({ fontSize: "24px"}, {duration: 1500,queue: false})
$("div").animate({ left: "200px" }, { duration: 1500,queue: false})
$("p").text("The queue length is : " + $("div").queue().length);
});
$("#s").click(function(){
$("div").stop(true);
});
});
</script>
</head>
<body>
<button id="a">Start Animation</button>
<button id="s">Stop Animation</button>
<p></p>
<div style="height: 100; width:100;background:
red;width:10%;position:absolute;">
jQuery queue()
</div>
</body>
</html>
Delaying Animation
● A great option when implementing animations is adding a delay before the
animation is added to the queue
● .delay(duration, [, queueName])
Applying .promise() to Animations
● This .promise() method in JQuery Returns a Promise object to be observed
when certain type actions bounded to the collection, queued or not, are
ended.
● .promise([type], [, target])
<html>
<head>
<title>jQuery</title>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function() {
$("#a").click(function(){
$("div").delay(2000).animate({height: 300,width: 300},{duration: 1500});
$("div") .animate({ fontSize: "24px"}, {duration: 1500})
$("div").animate({ left: "200px" }, { duration: 1500})
$( "div" ).promise().done(function() {
$( "p" ).append( " Finished! " );
});
});
});
</script>
</head>
<body>
<button id="a">Start Animation</button><p></p>
<div style="height: 100; width:100;background:
red;width:10%;position:absolute;">
jQuery queue()
</div>
</body>
</html>
2.Animating Show and Hide
Animating hide()
● The .hide( [duration] [, easing] [, callback]) method provides the optional duration,
easing, and callback options that help to animate the hide effect, making less of a
jump when the element disappears.
Animating show()
● The .show( [duration] [, easing] [, callback]) method provides the optional duration,
easing, and callback options that help to animate the show effect, making a more
easy transition as an element appears.
Animating toggle()
● The .toggle( [duration] [, easing] [, callback]) method provides the optional
duration, easing, and callback options that help to animate the toggle between the
show or hide effect when toggling between them.
<html><head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$("#hide").click(function(){
$("p").hide(1000);
});
$("#show").click(function(){
$("p").show(1000);
});
$("#tog").click(function(){
$("p").toggle(1000);
});
});
</script></head><body>
<p>If you click on the "Hide" button, I will disappear.</p>
<button id="hide">Hide</button>
<button id="show">Show</button>
<button id="tog">Toggle</button></body></html>
3.Animating Visibility
fadeIn()
● The .fadeIn( [duration] [, easing] [, callback]) method provides the optional duration,
easing, and callback that help to animate fading the opacity of an element from its current
value to 1.
fadeOut()
● The .fadeIn( [duration] [, easing] [, callback]) method provides the optional duration,
easing, and callback that help to animate fading the opacity of an element from its current
value to 0.
fadeToggle()
● The .fadeToggle( [duration] [, easing] [, callback]) method provides the optional duration,
easing, and callback options allowing you to animate fading the opacity of an element from
its current value to 0 or 1, depending on its current value.
fadeTo()
● The .fadeTo( duration, opacity [, easing] [, callback]) method provides the duration and
opacity options that specify a specific opacity to end at and how long to animate the
transition.
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$("#btn1").click(function(){
$("p").fadeOut(1000);
});
$("#btn2").click(function(){
$("p").fadeIn(1000);
});
$("#btn3").click(function(){
$("p").fadeToggle(1000);
});
$("#btn4").click(function(){
$("p").fadeTo(1000,0.5);
});
});
</script></head>
<body>
<p>This is a paragraph.</p>
<button id="btn1">Fade out</button>
<button id="btn2">Fade in</button>
<button id="btn3">Fade toggle</button>
<button id="btn4">Fade to</button>
</body>
</html>
4.Sliding Elements
Animating slideUp(), slideDown(), and slideToggle()
● The .slideUp( duration [, easing] [, callback]), .slideDown( duration [, easing] [,
callback]), and .slideToggle( duration [, easing] [, callback]) methods provide the
duration, easing, and callback arguments that help to animate sliding effects in the
vertical direction.
Sliding Using Width and Height
● The width and height properties are used to create a sliding element.
● Example:
○ $("img").animate({height:100}, 1000);
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$(".btn1").click(function(){
$("p").slideUp(1000);
});
$(".btn2").click(function(){
$("p").slideDown(1000);
});
$(".btn3").click(function(){
$("p").slideToggle(1000);
});
});
<body>
<button class="btn1">Slide up</button>
<button class="btn2">Slide down</button>
<button class="btn3">Slide down</button>
<p>This is a paragraph.</p>
</body>
</html>
5.Creating Resize Animations
● The width and height properties are used to create a resize animation.
<html><head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("#b1").animate({height:200,width:200},1000);
});
});
</script></head>
<body>
<button>Animate height</button>
<div id="b1" style="background:orange;height:100px;width:100px"></div>
</body></html>
6.Implementing Moving Elements
Animating Element Position Changes on Static Elements
● By default, all HTML elements have a static position, and cannot be moved.
● However, you can animate the margin and padding properties.
Animating Element Position Changes on Nonstatic Elements
● if it is a fixed, absolute, or relative positioned element
○ Animate the elements with two values top and left.
○ top⇒To animate movement vertically
○ left⇒to animate horizontally
Example: static element
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("div").animate({"margin-left":30}, 1000);
$("div").animate({fontSize: 50}, 1000);
});
});
</script>
</head>
<body>
<button>Start Animation</button>
<div style="background:green;height:100px;width:200px;">HELLO</div>
</body>
</html>
Example: Non-static element
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("div").animate({left:100}, 1000);
$("div").animate({fontSize: 50}, 1000);
});
});
</script>
</head>
<body>
<button>Start Animation</button>
<div style="background:green;height:100px;width:200px;position:absolute">HELLO</div>
</body>
</html>
Interacting with Web Forms in jQuery and JavaScript
1. Accessing Form Elements
2. Intelligent Form Flow Control
3. Dynamically Controlling Form Element Appearance and Behavior
4. Validating a Form
1.Accessing Form Elements
Getting and Setting Form Element Values
● Accessing Form Element Attributes
○ id—Used to query for and identify the form element.
○ name—Used in multiple fashions
○ type—Used to identify the type of <input> element.
○ value—Stores a value that is associated with the element
○ checked—Used to access the selection state of a radio or check box
● In jQuery, there are three ways to get the properties and attributes of the form objects:
the .attr(), .prop(), and .val() methods.
● The .attr() method is used to access attributes of the DOM object , whereas the .prop()
method is used to access properties of the DOM object
● jQuery provides the .val() method to access values represented by the form element
● Accessing Text Input Elements
○ In jQuery, the value can be accessed using the .val() method of the jQuery object.
● Accessing Check Box Inputs
○ Check box input elements have a Boolean value based on whether the element is
checked.
○ The value is accessed by getting the value of the checked attribute.
○ jQuery object represents an object that is checked is the .is() method. For
■ Example:
● jObj.is(":checked");
○ To set the state of a jQuery object representing check boxes to checked, you set
the checked attribute as follows:
● jObj.prop("checked", true);
<html><head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$("#b1").click(function(){
var str = $("input:text").val();
$("#p1").text(str);
$('.chk').prop("checked",true);
if ($('.chk').is(":checked"))
{
var s1=$("input:checkbox").val();
$("#p2").text(s1);
}
});
<body>
Name: <input type="text"><br>
Favorite color:<input type="checkbox" value="red" class="chk"> red
<button type="button" id="b1">Show Value</button>
<p id="p1"></p>
<p id="p2"></p>
</body>
</html>
● Accessing Radio Inputs
○ The radio inputs are almost always used in groups.
○ The value of a radio input group represents is not Boolean. Instead, it is the
value attribute of the currently selected element.
○ var groupValue = $("input[name=myGroup]").filter(":checked").val();
● Accessing Select Inputs
○ Select inputs are really container inputs for a series of <option> elements. The
value of the select element is the value(s) of the currently selected option(s).
○ To get that value is very simple in jQuery using the .val() method.
● Accessing Button Inputs
○ For the most part, you will not need to access button data, with the possible
exception of the value attribute, which defines the text displayed on the
button.
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$("#b1").click(function(){
var s =$("input[name=r]").filter(":checked").val();
$("#p1").text(s);
var s1=$("#mySelect").val();
$("#p2").text(s1);
});
});
</script>
<body>
Favorite color:<input type="radio" value="red" name="r"> red
<input type="radio" value="blue" name="r"> blue <br>
select item:<select id="mySelect">
<option value="apple">apple</option>
<option value="banana">banana</option>
</select>
<button type="button" id="b1">Show Value</button>
<p id="p1"></p>
<p id="p2"></p>
</body>
</html>
● Accessing File Inputs
○ the HTML <input type=”file”> is used to select the file After that jQuery
change() method is used to get the file name. This method is used in the
JQuery to get the file input by selected file name.
● Properties of file object
<html>
<head>
<script src="https://code.jquery.com/jquery-1.12.4.min.js"> </script>
<script>
$(document).ready(function() {
$('input:file').change(function(e) {
var f = e.target.files[0].name;
var f1 = e.target.files[0].type;
var f2 = e.target.files[0].size;
$("#p1").text(f);
$("#p2").text(f1);
$("#p3").text(f2);
});});
<body>
<h1>
Files
</h1>
<input type="file">
<p id="p1"> </p>
<p id="p2"> </p>
<p id="p3"> </p>
</body>
</html>
● Accessing Hidden Inputs
○ The hidden field is not shown to the user, but the data is sent when the form is
submitted.
○ The parts that will be sent with the form are the name and value attributes.
○ However, the additional values can be attached to a hidden form object, or any
HTML DOM object from jQuery, using the
■ .data(key[,value]) method.
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function() {
$("button").click(function(){
$("#invisibleMan").val("alive");
$("#invisibleMan").data("hairColor", "clear");
var state =$("#invisibleMan").val();
var state1= $("#invisibleMan").data("hairColor");
$("#p1").text(state);
$("#p2").text(state1);
});});
</script>
<body>
<button>show hidden values </button>
<input id="invisibleMan" name="InvisibleMan" type="hidden"/>
<p id="p1"></p>
<p id="p2"></p>
</body>
</html>
● Serializing Form Data
○ Many of the input elements in a form can be easily serialized into strings or
arrays.
○ Serializing the form data makes it easier to deal with when storing it, sending it
to a server, or dynamically making adjustments based on a form event.
○ For a form to be serialized, it needs two things:
■ a name attribute and
■ a value attribute that can be assigned to the name.
● Converting a Form into a Query String
○ One of the most common serialization tasks is converting the form data into a
serialized array.
○ jQuery makes this a snap with the .serialize() method.
○ The .serialize() method will access the form and convert the name/value pairs
into an URL-encoded string ready to be transmitted across the web.
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
var d=$("form").serialize();
$("div").text(d);
});
});
</script></head>
<body>
<form>
<input name="Name" type="text"/><br>
<select name="mySelection">
<option value="one">One</option>
<option value="two">Two</option>
<option value="three">Three</option>
</select><br>
<input type="radio" name="gender" value="male">Male
<input type="radio" name="gender" value="female">Female
<br>
</form>
<button>Serialize form values</button>
<div></div>
● Converting a Form into a JavaScript Object
○ Another very useful serialization technique is to convert the form data into a
JavaScript object that can then be accessed.
○ The jQuery .serializeArray() method is used to convert form into objects.
○ The serializeArray() method creates an array of objects (name and value) by
serializing form values
■ var formArr = $("#simpleForm").serializeArray();
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
var x = $("form").serializeArray();
$.each(x, function(i, field){
$("#results").append(field.name + ":" + field.value + " ");
});
});});</script></head>
<body>
<form action="">
First name: <input type="text" name="FirstName"><br>
Last name: <input type="text" name="LastName"><br>
</form>
<button>Serialize form values</button>
<div id="results"></div>
</body>
</html>
2.Intelligent Form Flow Control
Automatically Focusing and Blurring Form Elements
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$("input").blur(function(){
$("input").css("background-color","red");
});
$("input").focus(function(){
$("input").css("background-color","yellow");
});
});
</script></head>
<body>
Enter your name: <input type="text">
</body>
</html>
Intelligently Hiding and Showing Elements
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function() {
$("#b1").click(function() {
$("#form1").show();
});
$("#b2").click(function() {
$("#form1").hide();
});
});
</script></head>
<body>
<button id="b1">show form </button>
<button id="b2">hide form </button>
<form id="form1">
<b>First Name:</b> <input type="text" name="firstName">
<b>Last Name: </b><input type="text" name="lastName">
</form></body></html>
Disabling Elements
<html><head><script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$("#b1").click(function(){
$("input").prop("disabled", "disabled");
});
$("#b2").click(function(){
$("input").prop("disabled", "");
});});
</script></head>
<body><form>
<input type="text"></form>
<button id="b1"> disable </button>
<button id="b2"> enable </button></body></html>
Controlling Submit and Reset
<html><head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$("form").submit(function(e){
alert("Sorry. Not yet Implemented.");
e.preventDefault();
});
$("input:button").click(function(e){
$("form")[0].reset(); // $("form").get(0).reset();
});
});</script></head>
<body>
<form>
Firsname:<input type="text"><br>
Lastname:<input type="text"><br>
Password:<input type="password">
<input type="button" value="Reset">
<input type="submit" value="Submit"><br>
</form>
</body>
</html>
Note: Also use <input type="reset" value="reset">
3.Dynamically Controlling Form Element Appearance and Behavior
● In addition to the intelligent flow control, it is also helpful to provide visual
indicators and these indicators may adjust font or element sizes, change
classes, add/change borders, and so on.
● Many of the changes can be made by simple CSS settings based on element
states, such as :hover or :checked.
● The hover() method specifies two functions to run when the mouse pointer
hovers over the selected elements.
● This method triggers both the mouseenter and mouseleave events.
Note: If only one function is specified, it will be run for both the mouseenter and
mouseleave events.
<html><head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$("input:text").hover(function(){
$(this).css("background-color", "yellow");
},
function(){
$(this).css("background-color", "pink");
});
});</script></head>
<body><form>
Firsname:<input type="text"><br>
Lastname:<input type="text"><br>
<input type="submit" value="Submit"><br></form></body></html>
4.Validating a Form
Manually Validating a Web Form
● The most basic way of validating forms is by accessing their values and checking the
actual contents against the requirements.
● This can be done when the user is entering data by adding, for example, a blur,
change, or keypress event handler, and then inside the event handler checking the
value of the data
● It can also done when the user submits the form by adding the validation to a submit
handler
Example
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$("form").submit(function (e){
if (!$("#t1").val().match("^vfx")){
alert("Invalid format, start with vfx");
}
else { alert("valid format");}
e.preventDefault();
});
});</script></head>
<body>
<form>
Enter your name: <input type="text" id="t1">
<input type="submit" value="submit">
</form>
</body>
</html>
Getting the jQuery Validation Plug-In
● As a plug-in, the validator is implemented by loading the .js file after the jQuery.js
file has been loaded. For example:
○ <script type="text/javascript" src="js/jquery.validate.min.js"></script>
● The plug-in can be downloaded from:
○ http://jqueryvalidation.org/
● CDN(content delivery network)
○ https://cdn.jsdelivr.net/npm/jquery-validation@1.19.5/dist/jquery.validate.js
● The documentation for the validation plug-in can be found at:
○ http://docs.jquery.com/Plugins/Validation/
Applying Simple jQuery Validation Using HTML
● The validator can be implemented in HTML using the class and title attributes.
● The validator uses a set of rules, such as required or email, to validate the form
element.
● Setting the class attribute to one or more of these rules applies the validation when
.validate() is called on the form.
Validation Rules and Usage
Applying Complex Validation
Adding Validation Rules
● The rules method is used to define the different rules that apply to a form element by
referencing the name attribute.
Adding Validation Messages
● The messages attribute of the validation object is used to specify custom messages that
will be applied to the individual rules for the element.
● The messages attribute is also based on the name attribute of the element
Placing Validation Messages
● The validation plug-in places the error messages directly after the element that was
validated
● The jQuery validate errorplacement() function is used to customize the placement of an
error message
● The .validate() method returns a Validator object, which provides several methods
that are valuable for checking form validation.
Validator Object Methods
Example
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/jquery-
validation@1.19.5/dist/jquery.validate.js"></script>
<script>
$(document).ready(function() {
$.validator.addMethod("passwordRule",function(value ){
return /(?=^.{8,}$)((?=.*d)|(?=.*W+))(?![.n])(?=.*[A-Z])(?=.*[a-z]).*$/.test(value);
});
$("#forms").validate({
rules: {
name1: {
required : true
},
dob: {
required : true,
dateISO : true
},
radio1: {
required : true
},
check1: {
required : true
},
email1: {
required : true,
email : true
},
pass: {
required : true,
passwordRule: true
},
pass1: {
required : true,
equalTo:"#p"
}
},
messages:{
name1:{
required:"name is required"
},
dob:{
required:"dob is required",
date:"enter correct format"
},
radio1:{
required:"gender is required"
},
check1:{
required:"color is required"
},
email1: {
required : "email is required",
email : "enter correct email"
},
pass: {
required : "password is required",
passwordRule: "oneuppercase,lowercase,number,specialchar"
},
pass1: {
required : "password is required",
equalTo: "not same length"
},
},
errorPlacement: function(error, element){
if (element.is(":radio")){
error.appendTo(element.parent(".gender"));
}
else if (element.is(":checkbox")){
error.appendTo(element.parent(".color"));
}
else {error.insertAfter(element);}}
});
});
</script>
</head>
<body>
<h2>Validation of a form</h2>
<form id="forms">
name:<br>
<input type="text" name="name1" value="">
<br>
DOB:<br>
<input type="text" name="dob">
<br>
Email:<br>
<input type="email" name="email1">
<br>
Password:<br>
<input type="password" id="p" name="pass">
<br>
Re-enter Password:<br>
<input type="password" name="pass1">
<br>
Gender:<br>
<div class="gender">
<input type="radio" name="radio1">male
<input type="radio" name="radio1">female
</div>
Favorite color:<br>
<div class="color">
<input type="checkbox" name="check1">red
<input type="checkbox" name="check1">blue
</div><br><br>
<input type="submit" value="Submit">
</form>
</body>
</html>
Creating Advanced Web Page Elements in jQuery
1. Adding an Image Gallery
2. Implementing Tables with Sorting and Filters
3. Creating a Tree View
4. Using Overlay Dialogs
5. Implementing a Graphical Equalizer Display
6. Adding Sparkline Graphics

More Related Content

Similar to Unit – II (1).pptx

Similar to Unit – II (1).pptx (20)

jQuery
jQueryjQuery
jQuery
 
jQuery's Secrets
jQuery's SecretsjQuery's Secrets
jQuery's Secrets
 
presentation_jquery_ppt.pptx
presentation_jquery_ppt.pptxpresentation_jquery_ppt.pptx
presentation_jquery_ppt.pptx
 
Jquery- One slide completing all JQuery
Jquery- One slide completing all JQueryJquery- One slide completing all JQuery
Jquery- One slide completing all JQuery
 
Unit3.pptx
Unit3.pptxUnit3.pptx
Unit3.pptx
 
Advanced JQuery Mobile tutorial with Phonegap
Advanced JQuery Mobile tutorial with Phonegap Advanced JQuery Mobile tutorial with Phonegap
Advanced JQuery Mobile tutorial with Phonegap
 
jQuery secrets
jQuery secretsjQuery secrets
jQuery secrets
 
Jquery examples
Jquery examplesJquery examples
Jquery examples
 
jQuery
jQueryjQuery
jQuery
 
Jquery introduction
Jquery introductionJquery introduction
Jquery introduction
 
Jquery
JqueryJquery
Jquery
 
Modern frontend development with VueJs
Modern frontend development with VueJsModern frontend development with VueJs
Modern frontend development with VueJs
 
Client Web
Client WebClient Web
Client Web
 
Clean Javascript
Clean JavascriptClean Javascript
Clean Javascript
 
Jquery Basics
Jquery BasicsJquery Basics
Jquery Basics
 
Building Large jQuery Applications
Building Large jQuery ApplicationsBuilding Large jQuery Applications
Building Large jQuery Applications
 
22 j query1
22 j query122 j query1
22 j query1
 
J query1
J query1J query1
J query1
 
course js day 3
course js day 3course js day 3
course js day 3
 
BVJS
BVJSBVJS
BVJS
 

More from DrDhivyaaCRAssistant (15)

UNIT 1 (8).pptx
UNIT 1 (8).pptxUNIT 1 (8).pptx
UNIT 1 (8).pptx
 
UNIT 1 (7).pptx
UNIT 1 (7).pptxUNIT 1 (7).pptx
UNIT 1 (7).pptx
 
UNIT V (5).pptx
UNIT V (5).pptxUNIT V (5).pptx
UNIT V (5).pptx
 
UNIT IV (4).pptx
UNIT IV (4).pptxUNIT IV (4).pptx
UNIT IV (4).pptx
 
UNIT III (8).pptx
UNIT III (8).pptxUNIT III (8).pptx
UNIT III (8).pptx
 
UNIT II (7).pptx
UNIT II (7).pptxUNIT II (7).pptx
UNIT II (7).pptx
 
UNIT I (6).pptx
UNIT I (6).pptxUNIT I (6).pptx
UNIT I (6).pptx
 
UNIT V (5).pptx
UNIT V (5).pptxUNIT V (5).pptx
UNIT V (5).pptx
 
UNIT IV (4).pptx
UNIT IV (4).pptxUNIT IV (4).pptx
UNIT IV (4).pptx
 
UNIT III (8).pptx
UNIT III (8).pptxUNIT III (8).pptx
UNIT III (8).pptx
 
UNIT III (8).pptx
UNIT III (8).pptxUNIT III (8).pptx
UNIT III (8).pptx
 
UNIT II (7).pptx
UNIT II (7).pptxUNIT II (7).pptx
UNIT II (7).pptx
 
UNIT 1 (7).pptx
UNIT 1 (7).pptxUNIT 1 (7).pptx
UNIT 1 (7).pptx
 
UNIT II (7).pptx
UNIT II (7).pptxUNIT II (7).pptx
UNIT II (7).pptx
 
UNIT 1 (7).pptx
UNIT 1 (7).pptxUNIT 1 (7).pptx
UNIT 1 (7).pptx
 

Recently uploaded

Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptSAURABHKUMAR892774
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 
Effects of rheological properties on mixing
Effects of rheological properties on mixingEffects of rheological properties on mixing
Effects of rheological properties on mixingviprabot1
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfROCENODodongVILLACER
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 

Recently uploaded (20)

Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
Effects of rheological properties on mixing
Effects of rheological properties on mixingEffects of rheological properties on mixing
Effects of rheological properties on mixing
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 

Unit – II (1).pptx