Hi all
I have a form with a select box with size options in it and there is another select box for the user to say if he wants to his own custom sizes. If user selects yes from this second select box, two text fields should be displayed for the user to input his own values of width and height.
I submit the form using javascript and calculate the custom width and height combination and put this value in the form field which holds the size value.
My javascript code looks like this:
function fmsubmit(){
document.fm.action='index.cfm';
var size = document.fm.optionsSize.value;
var cwidth = document.fm.cwidth.value;
var cheight = document.fm.cheight.value;
var finalval = cwidth + ' X ' + cheight;
document.fm.optionsSize.value = finalval;
fm.submit;
}
New finalval value doesn't get assigned to document.fm.optionsSize.value
Does it happen because an option is also selected from the select box with name as optionsSize which has a value?
Any help is appreciated. Thanks
I have a form with a select box with size options in it and there is another select box for the user to say if he wants to his own custom sizes. If user selects yes from this second select box, two text fields should be displayed for the user to input his own values of width and height.
I submit the form using javascript and calculate the custom width and height combination and put this value in the form field which holds the size value.
My javascript code looks like this:
function fmsubmit(){
document.fm.action='index.cfm';
var size = document.fm.optionsSize.value;
var cwidth = document.fm.cwidth.value;
var cheight = document.fm.cheight.value;
var finalval = cwidth + ' X ' + cheight;
document.fm.optionsSize.value = finalval;
fm.submit;
}
New finalval value doesn't get assigned to document.fm.optionsSize.value
Does it happen because an option is also selected from the select box with name as optionsSize which has a value?
Any help is appreciated. Thanks