Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
WebDateChooser javascript
posted

Hi

      I want to clear the value of Webdatechooser in javascript button click .When i assign the value to null it is not taking newly assigned value but it is taking old selected value.When i change using server side event it is taking the changed value.Please help me why the value is not changing in client side

Parents
No Data
Reply
  • 24497
    Suggested Answer
    posted

    Hi,

    I tested following and it worked for me.

    <script type="text/javascript">
    function clearValue()
    {
     var dc = igdrp_getComboById('<%=WebDateChooser1.ClientID%>');
     dc.setValue(null);
    }
    </script>
    <igsch:WebDateChooser ID="WebDateChooser1" runat="server"></igsch:WebDateChooser>
    <input type="button" value="clear" onclick="clearValue()" />

Children