Can I access these values to implement my own custom reset function since I cannot use the standard reset functionality, or do I have to create hidden field to stores these values myself, or can I store the initial data in the client memory somehow as the page is loaded that can then be used by custom reset function.
Update
I have it working for text fields but it doesnt worked for checked values, what am i doing wrong
function resetOptions(divName) {
var inputs = document.getElementById(divName).getElementsByTagName('input');
for (i = 0; i < inputs.length; i++) {
if(inputs[i].type=='checkbox')
{
if(inputs[i].defaultChecked==true)
{
inputs[i].setAttribute('checked', 'checked');
}
else
{
inputs[i].removeAttribute('checked');
}
}
else
{
inputs[i].value=inputs[i].defaultValue;
}
}
}