AmitDiwan has Published 10744 Articles

HTML DOM Input Password required property

AmitDiwan

AmitDiwan

Updated on 22-Aug-2019 09:04:18

164 Views

The HTML DOM input password required property is associated with the required attribute of an element. The required property is used for setting and returning if it is necessary to fill some password field or not before the form is submitted to the server. This allows the form to ... Read More

HTML DOM Input Password readOnly property

AmitDiwan

AmitDiwan

Updated on 22-Aug-2019 08:52:39

153 Views

The HTML DOM Input Password readOnly property is used for setting or returning whether the input password field is read-only or not. The readOnly property makes the element non-editable but it can still be focused by tab or by clicking. If there is a default value inside a read-only element ... Read More

MySQL isn’t inserting binary data properly? Which datatype should be used?

AmitDiwan

AmitDiwan

Updated on 22-Aug-2019 08:48:59

639 Views

For this, use BIT data type. Let us first create a table −mysql> create table DemoTable(binaryValue BIT(5)); Query OK, 0 rows affected (0.83 sec)Insert some records in the table using insert command −mysql> insert into DemoTable values(10); Query OK, 1 row affected (0.17 sec) mysql> insert into DemoTable values(15); Query ... Read More

MySQL float data field not accepting every float number? How to fix this?

AmitDiwan

AmitDiwan

Updated on 22-Aug-2019 08:40:52

182 Views

To get fixed float data type, use DECIMAL(). This will fix the issue of unacceptance. Let us first create a table −mysql> create table DemoTable(Amount DECIMAL(10, 2)); Query OK, 0 rows affected (0.54 sec)Insert some records in the table using insert command −mysql> insert into DemoTable values(2194848.90); Query OK, 1 ... Read More

HTML DOM Input Password placeholder property

AmitDiwan

AmitDiwan

Updated on 22-Aug-2019 08:37:42

399 Views

The HTML DOM Input Password placeholder property is used for setting or returning the placeholder attribute value of an input password field. The placeholder property is used for giving the web page users a hint about the input element by showing a text inside the input field befor the user ... Read More

MySQL to perform DateTime comparison and find the difference between dates in different columns

AmitDiwan

AmitDiwan

Updated on 22-Aug-2019 08:34:53

294 Views

For this, use DATEDIFF() function. Let us first create a table −mysql> create table DemoTable(DOB datetime, CurrentDate datetime); Query OK, 0 rows affected (0.59 sec)Insert some records in the table using insert command −mysql> insert into DemoTable values('1995-01-21', CURDATE()); Query OK, 1 row affected (0.18 sec) mysql> insert into DemoTable ... Read More

HTML DOM Input Password pattern property

AmitDiwan

AmitDiwan

Updated on 22-Aug-2019 08:28:31

414 Views

The HTML DOM Input Password pattern property is used for setting or returning the pattern attribute of an input password field. It checks the password against a regular expression specified by the pattern property.SyntaxFollowing is the syntax forSetting the pattern property −passwordObject.pattern = regexpHere, regexp is a regular expression against which ... Read More

How to sort by arbitrary keywords in MySQL?

AmitDiwan

AmitDiwan

Updated on 22-Aug-2019 08:26:29

198 Views

For this, use the ORDER BY FIELD() ASC. Let us first create a table −mysql> create table DemoTable(Title varchar(100)); Query OK, 0 rows affected (0.56 sec)Insert some records in the table using insert command −mysql> insert into DemoTable values('Java'); Query OK, 1 row affected (0.14 sec) mysql> insert into DemoTable ... Read More

MySQL query to retrieve only the column values with special characters?

AmitDiwan

AmitDiwan

Updated on 22-Aug-2019 08:20:11

2K+ Views

For this, use REGEXP. Let us first create a table −mysql> create table DemoTable(SubjectCode varchar(100)); Query OK, 0 rows affected (0.89 sec)Insert some records in the table using insert command. The records consists of text, numbers and special characters −mysql> insert into DemoTable values('Java899@22'); Query OK, 1 row affected (0.19 ... Read More

HTML DOM Input Password object

AmitDiwan

AmitDiwan

Updated on 22-Aug-2019 08:17:52

258 Views

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

Advertisements