Thanks for the suggestions but if I do this I get NaN (not a number I am guessing).
parseInt("FOO",10); parseInt("",10); -----Original Message----- From: Jake Churchill [mailto:reyna...@gmail.com] Sent: Thursday, March 04, 2010 2:40 PM To: cf-talk Subject: Re: OT JS question 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 <cg...@careyweb.com> wrote: > > Anyone know if there is an equivalent to CFs 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:331365 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm