appending data to a hidden form variable

L

libsfan01

hello again!

another problem im having is appending a value to a string. how come
this function isnt working for me? string overwrites the value of
content not gets added onto the end of it?!

function alertchange(value) {

var string = value;

document.update.content.value = document.update.content.value + string;

}
 
R

Randy Webb

libsfan01 said the following on 7/23/2006 9:09 AM:
hello again!

another problem im having is appending a value to a string. how come
this function isnt working for me? string overwrites the value of
content not gets added onto the end of it?!

function alertchange(value) {

var string = value;

document.update.content.value = document.update.content.value + string;

}

Change the name of your parameter.

function alertchange(param){
document.update.content.value += param
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top