Tags: Regular Expression Articles

How to Remove All Line Breaks From a String Using Javascript

Tutorialsrack 30/03/2022 Jquery Javascript

In this article, you’ll learn how to remove all line breaks from a string using Javascript. We used the replace() method to remove all the line breaks from a string and pass a regular expression that replaces all the occurrences of the ‘\n’ and ‘\r’ with an empty character.

Read More..

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..
Recent Posts