Usharani has Published 93 Answers

How can I insert default value in MySQL ENUM data type?

usharani

usharani

Updated on 20-Jun-2020 09:07:21

We can do it with the help of the DEFAULT attribute of the ENUM data type. The DEFAULT attribute causes an ENUM data type to have a default value when a value is not specified. In other words, we can say that INSERT statement does not have to include a ... Read More

CSS3 Responsive Web Design

usharani

usharani

Updated on 20-Jun-2020 08:41:11

Responsive web design provides an optimal experience, easy reading and easy navigation with a minimum of resizing on different devices such as desktops, mobiles, and tabs).Let us see what is a responsive web design:

What is oncontextmenu event in JavaScript?

usharani

usharani

Updated on 19-Jun-2020 11:03:46

On right click of an element, when the context menu opens, then it is known as oncontextmenu in JavaScript.ExampleYou can try to run the following code to learn how to work with oncontextmenu event in JavaScript −<html>    <head>       <script>          <!--     ... Read More

How to get a pseudo-random number between 0 and 1 in JavaScript?

usharani

usharani

Updated on 19-Jun-2020 07:53:05

To get a pseudo-random number between 0 and 1, use the Math.random() method in JavaScript.ExampleYou can try to run the following code to get a pseudo-random number between 0 and 1 −<html>    <head>       <title>JavaScript Math random() Method</title>    </head>    <body>       <script>   ... Read More

How can I set the default value for an HTML <select> element?

usharani

usharani

Updated on 18-Jun-2020 06:02:56

With HTML, you can easily create a simple drop down list of items to get user input in HTML forms. Use the <select> element for this, which is a select box, also called drop down box, with option to list down items.Also, you can set the default value from the ... Read More

How to clear HTML form fields with jQuery?

usharani

usharani

Updated on 17-Jun-2020 13:54:32

With jQuery, you can easily clear HTML form fields. For this, jQuery: reset Selector is used. This will clear the HTML form fields.ExampleYou can try to run the following code to clear form fields with jQuery −Live Demo<!DOCTYPE html> <html>    <head>       <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>       ... Read More

Exception handling with method overriding in Java.

usharani

usharani

Updated on 17-Jun-2020 07:10:18

Yes, we can override a method by changing only the exception handling in java pertaining the following rule −An overriding method can throw any unchecked exceptions, regardless of whether the overridden method throws exceptions or not. However, the overriding method should not throw checked exceptions that are new or broader ... Read More

How to create an ordered list with list items numbered with lowercase letters in HTML?

usharani

usharani

Updated on 16-Jun-2020 13:51:36

To create ordered list in HTML, use the <ol> tag. Ordered list starts with the <ol> tag. The list item starts with the <li> tag and will be marked as numbers, lowercase letters uppercase letters, roman letters, etc. The default numbers for list items.For creating an ordered list with lowercase ... Read More

How to use “window.print()” function to print a page?

usharani

usharani

Updated on 16-Jun-2020 13:25:14

To print a page in JavaScript, use the window.print() method. It opens up the standard dialog box, through which you can easily set the printing options like which printer to select for printing.ExampleYou can try to run the following code to learn how to print a page −Live Demo<!DOCTYPE html> ... Read More

What is the difference between void, eval, and the Function constructor in JavaScript?

usharani

usharani

Updated on 16-Jun-2020 13:12:48

The void keywordThe void is an important keyword in JavaScript, which can be used as a unary operator that appears before its single operand, which may be of any type. This operator specifies an expression to be evaluated without returning a value.The syntax of the void can be either of ... Read More

Advertisements