AmitDiwan has Published 10744 Articles

jQuery fadeTo() Method

AmitDiwan

AmitDiwan

Updated on 12-Nov-2019 11:56:44

242 Views

The fadeTo() method in jQuery is used to gradually change the opacity for selected elements to a specified opacity.SyntaxThe syntax is as follows −$(selector).fadeTo(speed, opacity, easing, callback)Above, speed is the speed of the fading effect, whereas opacity specifies the opacity to fade to. The easing can be swing or linear ... Read More

jQuery find() with Example

AmitDiwan

AmitDiwan

Updated on 12-Nov-2019 11:54:18

331 Views

The find() method in jQuery is used to return descendant elements of the selected element.SyntaxThe syntax is as follows −$(selector).find(filter)Above, filter is a selector expression to filter the search for descendants.ExampleLet us now see an example to implement the jQuery find() method −    .demo * { ... Read More

jQuery fadeOut() with Example

AmitDiwan

AmitDiwan

Updated on 12-Nov-2019 11:48:20

201 Views

The fadeOut() method in jQuery is used to change the opacity, for selected elements, from visible to hidden.SyntaxThe syntax is as follows −$(selector).fadeOut(speed, easing, callback)Above, speed is the speed of the fading effect. The easing can be swing or linear for speed at different animation points. Callback is the function ... Read More

jQuery closest() with Example

AmitDiwan

AmitDiwan

Updated on 12-Nov-2019 11:42:48

331 Views

The closest() method in jQuery is used to return the first ancestor of the selected element.SyntaxThe syntax is as follows −$(selector).closest(filter)ExampleLet us now see an example to implement the jQuery closest() method −    .demo * {       display: block;       border: 2px ... Read More

jQuery fadeIn() Method

AmitDiwan

AmitDiwan

Updated on 12-Nov-2019 11:40:12

332 Views

The fadeIn() method in jQuery is used to change the opacity, for selected elements, from hidden to visible.SyntaxThe syntax is as follows −$(selector).fadeIn(speed, easing, callback)ExampleAbove, speed is the speed of the fading effect. The easing can be swing or linear for speed at different animation points. Callback is the function ... Read More

jQuery attr() Method

AmitDiwan

AmitDiwan

Updated on 12-Nov-2019 11:36:10

293 Views

The attr() method in jQuery is used to set or return attributes and values of the selected elements.SyntaxThe syntax is as follows −$(selector).attr(attribute)ExampleLet us now see an example to implement the jQuery attr() method −    $(document).ready(function(){       $("button").click(function(){          alert("Input ... Read More

jQuery appendTo() with Example

AmitDiwan

AmitDiwan

Updated on 12-Nov-2019 11:25:53

504 Views

The appendTo() method in jQuery is used to insert HTML elements at the end of the selected elements.SyntaxThe syntax is as follows −$(content).appendTo(selector)Above, content is the content to be inserted.ExampleLet us now see an example to implement the jQuery appendTo() method −    $(document).ready(function(){     ... Read More

jQuery event.timeStamp property with Example

AmitDiwan

AmitDiwan

Updated on 12-Nov-2019 11:18:25

299 Views

The event.timeStamp property in jQuery is used to return the number of milliseconds since January 1, 1970, when the event is triggered.SyntaxThe syntax is as follows −event.timeStampExampleLet us now see an example to implement the jQuery event.timeStamp property −    .demo {       color: white; ... Read More

jQuery event.pageY property

AmitDiwan

AmitDiwan

Updated on 12-Nov-2019 11:10:51

113 Views

The event.pageY property in jQuery is used to return the position of the mouse pointer, relative to the top edge of the document.SyntaxThe syntax is as follows −event.pageYExampleLet us now see an example to implement the jQuery event.pageY property −    $(document).ready(function(){       $(document).mousemove(function(event){ ... Read More

jQuery event.pageX property

AmitDiwan

AmitDiwan

Updated on 12-Nov-2019 11:08:59

155 Views

The event.pageX property in jQuery is used to return the position of the mouse pointer, relative to the left edge of the document.SyntaxThe syntax is as follows −event.pageXExampleLet us now see an example to implement the jQuery event.pageX property −    $(document).ready(function(){       $(document).mousemove(function(event){ ... Read More

Advertisements