parseInt might do the trick. parseInt(var)
-----Original Message----- From: Chad Gray [mailto:[email protected]] Sent: Thursday, March 04, 2010 1:37 PM To: cf-talk Subject: OT JS question 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:331362 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

