Click to See Complete Forum and Search --> : rename input text
ptran
Mar 9th, 2001, 12:29 PM
Hi all,
I need to rename the input text field, eg. text.htm to text.asp. I think I have seem this post on here a month ago, but was not able to search it. Any lead lead to the right direction will be most appreciate.
thanks
Cander
Mar 9th, 2001, 12:32 PM
rename a text field or a filename? Do you actually have a text field named text.htm?
Cander
Mar 9th, 2001, 12:41 PM
I am going to assume you want to dynamically change the name attribute of a text field. with javascript you could do it this way.
document.formname.textfieldname.name = "new name"
ptran
Mar 9th, 2001, 12:41 PM
rename the text field...not filename.
Cander
Mar 9th, 2001, 12:42 PM
saee above and tell me if thats not what you are looking for. If it isnt , please explain a little further what you are trying to accomplish.
ptran
Mar 9th, 2001, 12:54 PM
thank-you for your help, I find the answer with replace function.
Replace(expression, find, replacewith[, start[, count[, compare]]])
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.