Hi,
I am trying to take the values from a hidden field created with a js function and pass them into a select...from...where clause and can't seem to get the syntax right. The js function stores the values like ("cat,dog") but for the where clause I need them to be like ("cat","dog"). I will attach my function. Thanks in advance for any suggestions.
function populateHiddenStatus(fromObject,toObject) {
var output = '';
for (var i=0, l=fromObject.options.length;i<l;i++) {
if (fromObject.options.selected)
output +=(fromObject.options.value) + ',';
}
//alert(output);
toObject.value = output;
}
I am trying to take the values from a hidden field created with a js function and pass them into a select...from...where clause and can't seem to get the syntax right. The js function stores the values like ("cat,dog") but for the where clause I need them to be like ("cat","dog"). I will attach my function. Thanks in advance for any suggestions.
function populateHiddenStatus(fromObject,toObject) {
var output = '';
for (var i=0, l=fromObject.options.length;i<l;i++) {
if (fromObject.options.selected)
output +=(fromObject.options.value) + ',';
}
//alert(output);
toObject.value = output;
}