latest reactions

David Levin
Does the trim still work if the form fie …
mal
as long as the join keys are same in eac …
Tarida
I am using ipinfodb.com to redirect the…
David Levin
Good stuff. For those interested in a UD …
PtcBux
oh Wilbur Gans wrote thank you so much…

Clicky Web Analytics
Use OpenDNS
ZERIGO DNS

Ultimate dns hosting based on pre-defined templates, DNS redirection and lot's more.

mxna feeds

ColdBox Platform Utilities v3.0 ReleasedColdFusion Education Initiative: New Web Application Development curriculum from AdobeColdFusion Job Opening - State College, PAAdobe ColdFusion e-seminar: REST Support in ColdFusion 10Experimenting With The Amazon Simple Storage Service (S3) API Using ColdFusionVideo : Community Week #1 - Multi user management in ColdFusion 10What's new in ColdFusion world at Scott on the RocksMy Adobe ColdFusion wishlistLooking for ColdFusion support in Brackets?ColdFusion Position In FLI want to see in ColdFusion 11?Have some Ramen with your ColdFusionSpeaking at Atlanta #ColdFusion User Group tonight on 2 important topicsScotch on the Rocks ColdFusion Conference – 1rst dayVideo : ColdFusion @ SOTR 2013

All files are strictly confidential: all information is classified.
© Copyright 2002 - 2013 mximize.com.
All right reserved.

Visit Carlos GallupaMXNA webfeed

initCap for JavaScript

Just posting this to have it in my code snippets :-) Javascript function to capitalize the first letter of a phrase or word....

<script type="text/javascript">
function initCap(str) {
 /* First letter as uppercase, rest lower */
 var str = str.substring(0,1).toUpperCase() + str.substring(1,str.length).toLowerCase();

 return str;
}
</script>

<input type="text" value="chANGE this PHrase!" name="field1">
<input type="button" onclick="alert(initCap(field1.value))" value="Test initCap">

10931 viewed | 3 opinion(s)  | del.icio.us | Digg it | Tjarko @ 03/03/06 11:31 cet


Reactions:

volkan wrote.... (site)

you should do some error handling

24 October 2006 21:02 cet  

Michiel Heijmans wrote....

Try css..

.something {text-transform:capitalize;}

06 June 2007 12:04 cet  

Michiel Heijmans wrote....

Ok, ok...

p:first-letter {text-transform:capitalize;}

06 June 2007 12:17 cet  

Leave your comment

Your name


Your url/website/link/email....


Some room for your reaction is placed here..



The answer to the ultimate question is?? (42 ;-))




URL en mail addresses are translated for you... life sometimes is that simple!!