By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,442 Members | 1,327 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,442 IT Pros & Developers. It's quick & easy.

appending data to a hidden form variable

P: n/a
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;

}

Jul 23 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
}

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Temporarily at: http://members.aol.com/_ht_a/hikksnotathome/cljfaq/
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jul 23 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.