Hello guys,
I'm starting to learn Javascript and I'm having trouble combining 3 text fields on a form in order to submit it in a single textfield.
For example I have the following texfields:
<input id="country_code" name="country_code" size="6">
<input id="area_code" name="area_code" size="5">
<input name="hphone" size="9">
I want to combine them in the texfield "hphone" with javascript, not using php, I tried to add this on the form tag:
<form action="output.php method="post" id="myform" onsubmit="checkCode(this.country_code.value + this.area_code.value + this.hphone.value)">
but no luck on this..
Anyone could help?
Thanks in advance!
coleguitajuan