Thanks for your help before but i'm stuck and wondered if anyone could explain this to me abit, Thanks
I've got six text boxes going into two text boxes. I have three checkboxes that copy down the two of the first four text boxes when clicked. I've included a diagram that shows how i want to it to work pref. How it is now is with checkboxes instead of buttons. Thanks
<!-- Begin
var mtoprice3 = "";
var otherprice3 = "";
function InitSaveVariables(form) {
mtoprice3 = form.mtoprice3.value;
otherprice3 = form.otherprice3.value;
}
function madetomeasure(form) {
if (form.copy.checked) {
InitSaveVariables(form);
form.mtoprice3.value = form.mtoprice.value;
form.otherprice3.value = form.otherprice.value;
}
else {
form.mtoprice3.value = mtoprice3;
form.otherprice3.value = otherprice3;
}
}
// End -->
<!-- Begin
var mtoprice3 = "";
var otherprice3 = "";
function InitSaveVariables(form) {
mtoprice3 = form.mtoprice3.value;
otherprice3 = form.otherprice3.value;
}
function standard(form) {
if (form.copy2.checked) {
InitSaveVariables(form);
form.mtoprice3.value = form.mtos.value;
form.otherprice3.value = form.others.value;
}
else {
form.mtoprice3.value = mtoprice3;
form.otherprice3.value = otherprice3;
}
}
// End -->
<!-- Begin
var mtoprice3 = "";
var otherprice3 = "";
function InitSaveVariables(form) {
mtoprice3 = form.mtoprice3.value;
otherprice3 = form.otherprice3.value;
}
function nextup(form) {
if (form.copy3.checked) {
InitSaveVariables(form);
form.mtoprice3.value = form.mtoprice.value;
form.otherprice3.value = form.otherprice.value;
}
else {
form.mtoprice3.value = mtoprice3;
form.otherprice3.value = otherprice3;
}
}
// End -->
-----------------
<INPUT type="checkbox" name="copy"
onClick="javascript:madetomeasure(this.form);" value=http://www.webdeveloper.com/forum/archive/index.php/"checkbox">
<INPUT type="checkbox" name="copy2"
onClick="javascript:standard(this.form);" value="checkbox">
<INPUT type="checkbox" name="copy3"
onClick="javascript:nextup(this.form);" value="checkbox">
Thanks
Alan
I've got six text boxes going into two text boxes. I have three checkboxes that copy down the two of the first four text boxes when clicked. I've included a diagram that shows how i want to it to work pref. How it is now is with checkboxes instead of buttons. Thanks
<!-- Begin
var mtoprice3 = "";
var otherprice3 = "";
function InitSaveVariables(form) {
mtoprice3 = form.mtoprice3.value;
otherprice3 = form.otherprice3.value;
}
function madetomeasure(form) {
if (form.copy.checked) {
InitSaveVariables(form);
form.mtoprice3.value = form.mtoprice.value;
form.otherprice3.value = form.otherprice.value;
}
else {
form.mtoprice3.value = mtoprice3;
form.otherprice3.value = otherprice3;
}
}
// End -->
<!-- Begin
var mtoprice3 = "";
var otherprice3 = "";
function InitSaveVariables(form) {
mtoprice3 = form.mtoprice3.value;
otherprice3 = form.otherprice3.value;
}
function standard(form) {
if (form.copy2.checked) {
InitSaveVariables(form);
form.mtoprice3.value = form.mtos.value;
form.otherprice3.value = form.others.value;
}
else {
form.mtoprice3.value = mtoprice3;
form.otherprice3.value = otherprice3;
}
}
// End -->
<!-- Begin
var mtoprice3 = "";
var otherprice3 = "";
function InitSaveVariables(form) {
mtoprice3 = form.mtoprice3.value;
otherprice3 = form.otherprice3.value;
}
function nextup(form) {
if (form.copy3.checked) {
InitSaveVariables(form);
form.mtoprice3.value = form.mtoprice.value;
form.otherprice3.value = form.otherprice.value;
}
else {
form.mtoprice3.value = mtoprice3;
form.otherprice3.value = otherprice3;
}
}
// End -->
-----------------
<INPUT type="checkbox" name="copy"
onClick="javascript:madetomeasure(this.form);" value=http://www.webdeveloper.com/forum/archive/index.php/"checkbox">
<INPUT type="checkbox" name="copy2"
onClick="javascript:standard(this.form);" value="checkbox">
<INPUT type="checkbox" name="copy3"
onClick="javascript:nextup(this.form);" value="checkbox">
Thanks
Alan