AmitDiwan has Published 10744 Articles

DateTime.Add() Method in C#

AmitDiwan

AmitDiwan

Updated on 06-Nov-2019 05:30:03

4K+ Views

The DateTime.Add() method in C# is used to return a new DateTime that adds the value of the specified TimeSpan to the value of this instance.SyntaxFollowing is the syntax −public DateTime Add (TimeSpan val);Above, Val is the positive or negative time interval.ExampleLet us now see an example to implement the ... Read More

jQuery :submit Selector

AmitDiwan

AmitDiwan

Updated on 05-Nov-2019 12:46:34

308 Views

The :submit selector in jQuery is used to select button and input elements with type submit.SyntaxThe syntax is as follows −$(":submit")ExampleLet us now see an example to implement the jQuery :submit selector −    .one {       background-color: green;       color: white;   ... Read More

jQuery :selected Selector

AmitDiwan

AmitDiwan

Updated on 05-Nov-2019 12:42:28

148 Views

The :selected selector in jQuery is used to selects option elements that are pre-selected.SyntaxThe syntax is as follows −$(":selected")ExampleLet us now see an example to implement the jQuery :selected selector −    .one {       background-color: green;       color: white;       ... Read More

jQuery :root Selector

AmitDiwan

AmitDiwan

Updated on 05-Nov-2019 12:37:54

176 Views

The :root selector in jQuery is used to select the document's root element.SyntaxThe syntax is as follows −$(":root")ExampleLet us now see an example to implement the jQuery :root selector −    $(document).ready(function(){       $(":root").css("color", "red");    }); Heading One Heading Two ... Read More

jQuery :reset Selector

AmitDiwan

AmitDiwan

Updated on 05-Nov-2019 12:33:44

235 Views

The :reset selector in jQuery is used to select button and input elements with type reset.SyntaxThe syntax is as follows −$(":reset")ExampleLet us now see an example to implement the jQuery :reset selector −    .one {       background-color: blue;       color: white;   ... Read More

jQuery :radio Selector

AmitDiwan

AmitDiwan

Updated on 05-Nov-2019 12:27:46

236 Views

The :radio selector in jQuery is used to select input elements with type radio.SyntaxThe syntax is as follows −$(":radio")ExampleLet us now see an example to implement the jQuery :radio selector −    $(document).ready(function(){       $(":radio").wrap("");    }); Register Username: ... Read More

jQuery :password Selector

AmitDiwan

AmitDiwan

Updated on 05-Nov-2019 12:25:32

140 Views

The :password selector in jQuery is used to select input elements with type password.SyntaxThe syntax is as follows −$(":password")ExampleLet us now see an example to implement the jQuery :password selector −    .one {       background-color: blue;       color: white;       ... Read More

jQuery :parent Selector

AmitDiwan

AmitDiwan

Updated on 05-Nov-2019 12:23:54

180 Views

The :parent selector in jQuery is used to select all elements that are the parent of another element.SyntaxThe syntax is as follows −$(":parent")ExampleLet us now see an example to implement the jQuery :parent selector −    .one {       background-color: blue;       color: ... Read More

jQuery :only-of-type Selector

AmitDiwan

AmitDiwan

Updated on 05-Nov-2019 12:21:54

131 Views

The :only-of-type selector in jQuery is used to select elements which are the only child of its type of its parent.SyntaxThe syntax is as follows −$(":only-of-type")ExampleLet us now see an example to implement the jQuery :only-of-type selector −    .one {       color: white;   ... Read More

jQuery :only-child Selector

AmitDiwan

AmitDiwan

Updated on 05-Nov-2019 12:19:47

281 Views

The :only-child() selector in jQuery is used to select elements that is the only child of its parent.SyntaxThe syntax is as follows −$(":only-child")ExampleLet us now see an example to implement the jQuery :only-child() selector −    .one {       color: white;       background-color: ... Read More

Advertisements