Expand|Select|Wrap|Line Numbers
- function setCheckBox(checkedvalue) {
- //document.getElementById("MMainBody_MTMWTWDTDHF").value = "test";
- //setValue("<%=checkvalueHF.ClientID %>", checkedvalue);
- if (checkedvalue == "false") {
- setValue("<%=ReasonHF.ClientID %>", "noadjust");
- }
- else {
- setValue("<%=ReasonHF.ClientID %>", "All");
- }
- document.forms[0].submit();
- }
that's my code, works fine with you check on the checkbox, it changes the data its pulling, but when you uncheck it, the data stays the same and refreshing says it will repost, but still keeps same data as if it is checked. only if i hit my reset button,
<asp:Button ID="ResetBtn" runat="server" Text="Reset" OnClick="ResetBtn_Clicked"/>
does it go back to the original data. what is a way within jscript to get the page to recognize that the box has been unchecked?