10 Digit Mobile Number Validation in Jquery

To validate a 10 digit mobile number in jQuery, you can use regular expressions. Here’s an example code snippet to achieve this: HTML Form Jquery Code In the above code, replace “form-id” with the ID of your form, and “mobile-number-field” with the ID of the mobile number input field in your form. The regular expression … Read more

Random Color Generator In Javascript

Here’s a code for a random color picker in JavaScript: HTML code CSS Code Javascript Code This code generates a random hexadecimal color code and sets it as the background color of the webpage.

Generate Strong Random Password In Javascript

A strong password is important because it provides the first line of defense against unauthorized access to your online accounts, personal information, and sensitive data. A weak password can easily be guessed or cracked by hackers, leaving you vulnerable to cyber attacks, identity theft, and data breaches. A strong password should be complex, unique, and … Read more

How to Get CSS Property Value in Javascript?

In this article, we get CSS property value in javascript. To do this task we have two methods, the first one is The style property and the second one is getComputedStyle. Method 1: The Style Property The style read-only and retrieves property returns the inline style of an element. HTML Javascript Result Method 2: getComputedStyle The Window.getComputedStyle() the method returns an … Read more

How to Remove Class Using Javascript?

In this article, we remove the CSS class using javascript. We create a simple text with some CSS and create a button. After clicking on the button call a javascript function and remove the class using javascript. HTML CSS Javascript I hope this code will helpful for you.

Toggle Disabled Attribute in Jquery

In this article, In this article, we are going to create an HTML input box that is Toggle Disabled and Enable by a single button in Jquery. HTML Javascript I hope this code will helpful for you.

How to Make a BMI Calculator in Javascript?

In this blog post, we make a BMI calculator in simple javascript code. BMI (Body mass index) formula measures total body fat and whether a person is a healthy weight. First, make an HTML form to get input value from the user. HTML javascript First of all, we have got the input value and calculated … Read more

How to make a text italic in JavaScript?

To make italic text, we have two methods, first one is style.fontStyle, and the italics() method. The property sets or returns whether the style of the font is normal, italic, or oblique. Method 1: Using style.fontStyle HTML javascript Method 2: Using  italics() method We can also use the javascript italics() method. The italics() method creates an <i> An HTML … Read more

How to Set, Get and Remove Session Value in Javascript?

In this blog post, we are going to set, get and remove the session value in javascript. The sessionStorage object stores data only for a session. sessionStorage is quite similar to localStorage, But the difference is that localStorage doesn’t expire, and data in sessionStorage is cleared when the page session ends. Set Session value in … Read more