function populateHiddenFields() { document.getElementById('{!$Component.pg:frm:pgBlk:dateHdn}').value=document.getElementById('{!$Component.pg:frm:pgBlk:pgsec:pgsecIt:dateorg}').value; ( if i do.value='' ; the value is not getting populated.)
No change bob i replaced ':' with '.' , still the input field is showing default value, i want htis as blank, there is no default value on the field i checked that too.
Your component reference doesn't look quite right to me.
the $Component uses dotted notation, so the elements would be separated by '.' rather than ':'
No change bob i replaced ':' with '.' , still the input field is showing default value, i want htis as blank, there is no default value on the field i checked that too.
If you view the source of the page, what does the $Component... turn into when the page is rendered.