;

Javascript Articles


How to Restrict an HTML Input Textbox to Allow Only Numeric Values using Javascript or JQuery

Tutorialsrack 09/10/2021 Jquery Javascript

In this article, you will learn how to restrict an HTML input textBox to allow only numeric values using Javascript or JQuery. By default, the HTML5 input field has attribute type="number" that is used to get input in numeric format only.

Read More..

How to Check if a String Is a Valid SHA256 Hash or Not in Javascript

Tutorialsrack 13/06/2021 Jquery Javascript

In this article, you’ll learn how to check if a string is a valid SHA256 hash or Not in javascript. We used the regex expression to check if a string is a valid SHA256 hash in JavaScript. By using this regex expression, we match for the 64 consecutive hexadecimal digits which are characters from a-f and numbers from 0-9.

Read More..

How to Remove the First and Last Character from a String using Javascript

Tutorialsrack 05/06/2021 Jquery Javascript

In this article, you’ll learn how to remove the first and last character from a string using javascript. There are various ways to remove the first and last character from the javascript. This post explains the four possible ways to remove the first and last character from the string using javascript or Jquery. JavaScript Provides a wide range of built-in string methods. There are three straightforward methods: substring(), slice(), or substr().

Read More..
Recent Posts
Tags