Hidden Field problem
-
Hi There, I am retrieving Hidden Field value through javascript but it is showing me one error that is document.getElementById("ctl00_ContentPlaceHolder1_hfUpd") has no properties I tried all following ways also:- document.getElementById("hid").value document.getElementById('hid').value document.getElementById("ctl00_ContentPlaceHolder1_hfUpd").value //Using ControlID Previously I tried used following code and it working fine. document.getElementById("hid").value But This Code Is Not Working.Is There any problem of Content Place Holder. My Code To retrieve value:- var hidflag=document.getElementById('<%=hfUpd.ClientID%>').value
-
Hi There, I am retrieving Hidden Field value through javascript but it is showing me one error that is document.getElementById("ctl00_ContentPlaceHolder1_hfUpd") has no properties I tried all following ways also:- document.getElementById("hid").value document.getElementById('hid').value document.getElementById("ctl00_ContentPlaceHolder1_hfUpd").value //Using ControlID Previously I tried used following code and it working fine. document.getElementById("hid").value But This Code Is Not Working.Is There any problem of Content Place Holder. My Code To retrieve value:- var hidflag=document.getElementById('<%=hfUpd.ClientID%>').value
try $get('<%=hdf.ClientID%'>.value
-
try $get('<%=hdf.ClientID%'>.value
$get is an AJAX function that is simply shorthand for document.getElementById
only two letters away from being an asset