AmitDiwan has Published 11365 Articles

jQuery :input Selector

AmitDiwan

AmitDiwan

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

145 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

235 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

172 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

158 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

685 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

116 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

271 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

167 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

Alter a table column from VARCHAR to NULL in MySQL

AmitDiwan

AmitDiwan

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

407 Views

To alter, use the ALTER command with CHANGE as in the below syntax −alter table yourTableName change yourColumnName yourColumnName datatype NULL DEFAULT NULL;Let us first create a table −mysql> create table DemoTable1356     -> (     -> FirstName varchar(30)     -> ); Query OK, 0 rows affected ... Read More

MySQL query to return all items in a single row

AmitDiwan

AmitDiwan

Updated on 05-Nov-2019 10:14:31

853 Views

For this, use GROUP_CONCAT(). Let us first create a table−mysql> create table DemoTable1355     -> (     -> Location text     -> ); Query OK, 0 rows affected (0.57 sec)Insert some records in the table using insert command −mysql> insert into DemoTable1355 values('E:'); Query OK, 1 row ... Read More

Advertisements