<script type="text/javascript"> function removeSpaces(){ var txt=document.getElementById("t1").value; var someText = txt.replace(/(\r\n|\n|\r)/gm," "); someText = someText.replace(/\s+/g," "); document.getElementById("t2").value=someText; } </script>
Discover the latest in technology news and insights at Code Chronicles - your go-to source for coding tutorials, tech reviews, and more
Javascript: Remove Spaces
C# Numeric Test Field Validation
Class Validation{
public boolean IsNumeric(String v) {
return v.ToCharArray().Where(x => !Char.IsDigit(x)).Count() == 0;
}
}
Subscribe to:
Posts (Atom)
Running Drupal in Docker
I will assume that you have already installed docker. If you haven't installed docker please visit https://www.docker.com/ to download a...
-
Here is a simple way to load and Update data using Datagridview in C#. 1) Drag a datagridview on your form. 2) Drag two buttons one butt...
-
At the top of your page add the following. <?php error_reporting ( E_ALL ); ini_set ( 'display_errors' , 1 ); ?> ...
-
Summary Statistics are used to summarize information regarding a sample. Important tools in Summary Statistics are Mean Variance Eff...