hai all, when iam getting value to a page the number format is 12,345,678 earlier i was using IsNumeric function..but now the number format has changed as mentioned earlier. can someone give a solution to get only the number to submit it to database
Number = '12,345,678'; Number = Number.replace(/,/gi,â€â€); This will help you my friend as much as I know.
Number is a keyword in javascript you cannot use it. I dunno if its your keyboard or the forum but your quotes got replace with backticks or something. <script language="javascript"> var num = '12,345,678'; num = num.replace(/,/gi,""); alert( num ); </script> HTML: