Hi, I have a function whereby if a checkbox is clicked the values in one set of textboxes are sent to another set of textboxes. For example, user enters payment details and if the address entered has the same shipping address, the details are sent to these fields.
However, how do I set a value for a drop down list?
function copyDislike()
{
window.document.editdetails.newdislike.selectedIndex = window.document.editdetails.dislike.value;
}
I have used the selected index property of the drop down in assigning a value to it, however its not functioning properly.
How do I mend this?
Thanx
However, how do I set a value for a drop down list?
function copyDislike()
{
window.document.editdetails.newdislike.selectedIndex = window.document.editdetails.dislike.value;
}
I have used the selected index property of the drop down in assigning a value to it, however its not functioning properly.
How do I mend this?
Thanx