Javascript + Format of Integer Using Replace Function & Split Function
<p>In JavaScript function, I want to concatenate a numbers. </p>

<pre><code>Text Box value format `1.234.567,89` 
</code></pre>

<p>But I split the value using "," and access two array having value as </p>

<pre><code>First Array = 1.234.567
</code></pre>

<p>Then I used replace function to replace (.) dot by nothing, <code>to access simple integer : 1234567</code></p>

<p>Code Sample</p>

<pre><code>var number = element.value;
var numberArray = number.split(',');
numberArray[0] = numberArray[0].replace(/./g,"");
alert('numberArray[0]:'+numberArray[0]+'::numberArray[1]:'+numberArray[1]);
</code></pre>

<p>But I am getting numberArray[0] as null. Suggest something !!!</p>
