I had to respond anyway. :)

function testField() {
        
        if(document.getElementById('test').value.search(/^[A-Za-z]/) == 0)
                alert('true');
}


On 11/29/05, Adkins, Randy <[EMAIL PROTECTED]> wrote:
> Never mind I think I got it.
>
> -----Original Message-----
> From: Adkins, Randy [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 29, 2005 4:09 PM
> To: CF-Community
> Subject: JS Question
>
> Dose anyone have a simple JS script that validates the FIRST character
> of a field to make sure it is an ALPHA character.
>
> My initial thought was to validate the ASCII value of it, but there is
> no ASC function in JS.
>
> I know this is something that should be relatively simple but it is
> escaping me right now. I did a Google search but did not have much luck
> in the the results.
>
> Thanks!
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:5:184688
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to