AmitDiwan has Published 10744 Articles

jQuery :last Selector

AmitDiwan

AmitDiwan

Updated on 05-Nov-2019 10:38:36

189 Views

The :last selector in jQuery is used to select the last element.SyntaxThe syntax is as follows −$(":last")ExampleLet us now see an example to implement the jQuery :last Selector −    .one {       color: black;       background-color: orange;       font-size: 16px; ... Read More

jQuery :lang() Selector

AmitDiwan

AmitDiwan

Updated on 05-Nov-2019 10:36:10

127 Views

The :lang() selector in jQuery is used to select all elements with the specific language set as the parameter.SyntaxThe syntax is as follows −$(":lang(language)")Here, the parameter language can be en, en-us, en-uk, etc. These are language codes.ExampleLet us now see an example to implement the :lang() selector − ... Read More

jQuery :input Selector

AmitDiwan

AmitDiwan

Updated on 05-Nov-2019 10:32:15

253 Views

The :input selector in jQuery is used to select all input elements.SyntaxThe syntax is as follows −$(":input")ExampleLet us now see an example to implement the :input selector −    .demo {       background-color: blue;       color: white;       border: 2px yellow ... Read More

jQuery :image Selector

AmitDiwan

AmitDiwan

Updated on 05-Nov-2019 10:26:24

312 Views

The :image selector in jQuery is used to select all input elements with type=”image”.SyntaxThe syntax is as follows −$(":image")ExampleLet us now see an example to implement the :image() selector −    .demo {       background-color: gray;       border: 2px yellow dashed;    } ... Read More

jQuery :hidden Selector

AmitDiwan

AmitDiwan

Updated on 05-Nov-2019 10:24:23

254 Views

The :hidden selector in jQuery is used to select all hidden elements.SyntaxThe syntax is as follows −$(":hidden")ExampleLet us now see an example to implement the :hidden() selector −    $(document).ready(function(){       $("h2:hidden").show();    }); Fill the form ID: Rank: ... Read More

jQuery :header Selector

AmitDiwan

AmitDiwan

Updated on 05-Nov-2019 10:22:39

239 Views

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

Sum values in MySQL from similar day records

AmitDiwan

AmitDiwan

Updated on 05-Nov-2019 10:19:27

867 Views

Use GROUP BY and DATE() for this. Let us first create a table −mysql> create table DemoTable1358     -> (     -> PurchaseDate datetime,     -> ProductPrice int     -> ); Query OK, 0 rows affected (1.59 sec)Insert some records in the table using insert command. ... Read More

jQuery :has() Selector with example

AmitDiwan

AmitDiwan

Updated on 05-Nov-2019 10:19:03

163 Views

The :has() selector in jQuery is used to select elements that contain at least one element matching the specified selector.SyntaxThe syntax is as follows −$(":has(selector)")Here, the parameter selector specifies the element to select.ExampleLet us now see an example to implement the :has() selector −    .demo { ... Read More

Display the result with not null value first and then with null value in MySQL

AmitDiwan

AmitDiwan

Updated on 05-Nov-2019 10:18:06

358 Views

Let us first create a table −mysql> create table DemoTable1357     -> (     -> StudentName varchar(40),     -> StudentCountryName varchar(30)     -> ); Query OK, 0 rows affected (0.49 sec)Insert some records in the table using insert command −mysql> insert into DemoTable1357 values('Chris', 'US'); Query ... Read More

jQuery :gt() Selector

AmitDiwan

AmitDiwan

Updated on 05-Nov-2019 10:16:43

245 Views

The :gt() selector in jQuery is used to select elements with an index greater than mentioned in the index parameter.SyntaxThe syntax is as follows −$(":gt(index)")Here, The parameter index is the specified index. The elements above this index is selected.ExampleLet us now see an example to implement the :gt() selector − ... Read More

Advertisements