AmitDiwan has Published 10744 Articles

HTML DOM Input Range object

AmitDiwan

AmitDiwan

Updated on 22-Aug-2019 12:26:22

207 Views

The HTML DOM Input Range object is associated with the element with type “range”. We can create and access an input element with type range using the createElement() and getElementById() method respectively.PropertiesFollowing are the properties for the Input range object −Sr.NoProperty & Description1autocompleteTo set or return the autocomplete attribute ... Read More

HTML DOM Input Range name property

AmitDiwan

AmitDiwan

Updated on 22-Aug-2019 12:20:33

122 Views

The HTML DOM Input range name property is used for setting or returning the name attribute of an input range field. The name attribute helps in identifying the form data after it has been submitted to the server. JavaScript can also use the name attribute to refer form elements for ... Read More

How to separate last name and first names in single column into two new columns in MySQL?

AmitDiwan

AmitDiwan

Updated on 22-Aug-2019 12:19:39

3K+ Views

For this, use SUBSTRING_INDEX() and REPLACE(). Let us first create a table −mysql> create table DemoTable (Name varchar(100)); Query OK, 0 rows affected (0.53 sec)Insert some records in the table using insert command. Here, we have inserted last name and first names −mysql> insert into DemoTable values('Chris | Bob Brown'); ... Read More

HTML DOM Input Range min property

AmitDiwan

AmitDiwan

Updated on 22-Aug-2019 12:14:48

155 Views

The HTML DOM Input Range min property is used for setting or returning the min attribute value for the range slider control. This attribute is used for indicating the minimum value of the slider control and is often used with min property to create a range of values between which ... Read More

Best way to combine multiple advanced MySQL select queries?

AmitDiwan

AmitDiwan

Updated on 22-Aug-2019 12:13:50

416 Views

To combine multiple advanced MySQL select queries, use UNION. Let us first create a table −mysql> create table DemoTable1 (Value1 int, Value2 int); Query OK, 0 rows affected (0.62 sec)Insert some records in the table using insert command −mysql> insert into DemoTable1 values(10, 29); Query OK, 1 row affected (0.11 ... Read More

HTML DOM Input Range max property

AmitDiwan

AmitDiwan

Updated on 22-Aug-2019 12:11:34

197 Views

The HTML DOM Input Range max property is used for setting or returning the max attribute value for the range slider control. This attribute is used for indicating the maximum value of the slider control and is often used with min property to create a range of values between which ... Read More

How to implement the opposite of INITCAP() functionality with MySQL?

AmitDiwan

AmitDiwan

Updated on 22-Aug-2019 12:10:24

277 Views

The INITCAP() method display the first character in every word in uppercase and rest in lowercase.To implement the opposite functionality, you need to create your own function in MySQL. Here’s the function −mysql> delimiter // mysql> create function convertFirstLetterToLowerAndRemainingToCapital(value varchar(250))    returns varchar(250)    deterministic    begin    declare valueLength ... Read More

HTML DOM Input Range form property

AmitDiwan

AmitDiwan

Updated on 22-Aug-2019 12:05:07

129 Views

The HTML DOM Input Range form property is used for returning the form reference that contains the given input range slider. If the range slider is outside the form then it will simply return NULL. This property is read-only.SyntaxFollowing is the syntax for input range form property.rangeObject.formExampleLet us look at ... Read More

Concatenate data from multiple rows using GROUP_CONCAT() in MySQL?

AmitDiwan

AmitDiwan

Updated on 22-Aug-2019 11:57:57

269 Views

Let us first create a table −mysql> create table DemoTable (CountryName varchar(100)); Query OK, 0 rows affected (1.01 sec)Insert some records in the table using insert command −mysql> insert into DemoTable values('US'); Query OK, 1 row affected (0.18 sec) mysql> insert into DemoTable values('AUS'); Query OK, 1 row affected (0.13 ... Read More

HTML DOM Input Range autofocus property

AmitDiwan

AmitDiwan

Updated on 22-Aug-2019 11:54:00

151 Views

The HTML DOM input range autofocus property is associated with the HTML element’s autofocus attribute. This property is used for setting or returning if the input range slider should be automatically focused when the page loads or not.SyntaxFollowing is the syntax for −Setting the autofocus property −rangeObject.autofocus = true|falseHere, ... Read More

Advertisements