[Javascript] web form input type name display alert

Manuel Socarras Reyes msocarras at terra.es
Fri Mar 1 14:04:07 CST 2002


dont worry wrote:

>I have a form with the text boxes , radios....
>I use under scores in the naming conventions 
><input type="text" name="ANSWER_1_CAR_COLOR">
>
>When the alert box displays name can I have it remove
>the under scores?  So we get ANSWER 1 CAR COLOR?
>
this can be done in many ways, one could be:

* copy the name property to a var
* in an infinite loop find "_" with indexOf method & substitute them 
with a space
* quit the loop when indexOf return -1 with the break stament

>Can you send me a list of GOOD online references that
>I might not have?
>
http://developer.netscape.com/docs/index.html

>
>
>Thank you,
>DW
>
>__________________________________________________
>
-- 
Saludos,

Manuel Socarrás Reyes <msocarras at terra.es>
Barcelona. Spain








More information about the Javascript mailing list