JavaScript int.TryParse Equivalent (pietschsoft.com)
submitted by
crpietschmann(11.3k) 4 years, 4 months ago
One of the most handy methods in .NET is the int.TryParse method. It makes it really convenient when evaluating a string value as an integer. But, JavaScript has no equivalent so you need to do your own evaluation every time. Here's a simple JavaScript method I wrote that takes the work out of evaluating a string to an integer.
|category: AJAX
|Views: 139
tags:
int TryParse AJAX JavaScript another
Everyones tags:
Your Tags: