http://www.w3schools.com/jsref/jsref_parseInt.asp

var value = "15";
parseInt(value,10);

On Thu, Mar 4, 2010 at 1:37 PM, Chad Gray <[email protected]> wrote:

>
> Anyone know if there is an equivalent to CF’s val() in Javascript?
>
> I want to check a JS variable and set it to zero if it is blank.
>
> Thanks
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331360
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to