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
120
Unable to Access value of WebDateChooser while Using MasterPage
posted

Hello, i'm using Infragistic WebDateChooser v 7.1 in my application, i am also using masterpages in my application. I've a scenario in which when date is changed in WDChooser control the year portion of the selected date has to be loaded in a dropdown.

i'm using the following javascript code to fetch the selected value in WDChooser using "OnBlur"  event but it doesn't work.

when i place the same function in another Webform that is not using  MasterPage it works absolutely perfect and displays the selected date. But i need it to work on Forms using MasterPages

<script type="text/javascript" language="javascript"> 

function test()
    {
        alert(document.getElementById('WebDateChooser1').value);                    
        return false;
   
    }

</script> 

Quick Response will be highly appreciated.