posted 16 years ago
I need some help on this. Thanks in advance.
I have 4 pages, all 4 pages have drop down, text, radio....
In page1 drop down, if the value is changed and go the next step without
saving, I need to give a popup message saying,
"You have made changes to this page. Clicking OK will disregard your changes. Do you wish to continue without saving?"
But I am getting the popup even if there is no change.
Here's the code:
case "select-multiple" :
for (var x = 0, y = ele[i].options.length; x < y; x++) {
if ( ele[i].options[ x ].selected != ele[i].options[ x ].defaultSelected ) return true;
}
break;
[ June 07, 2007: Message edited by: Venkat Babu ]