wwWebDatePicker::OnClientSelect

Optional Client Event Handler fired when date is selected.

Event handler receives two parameters:

  • date string
    Contains the selected date value as string.

  • wwDatePicker TextBox Element
    Contains the date picker text box DOM element

Example

<ww:wwDatePicker runat="server" id="txtImageButton" 
                CssClass="date"
                DisplayMode="ImageButton"  
                OnClientSelect="dateClientSelect">
</ww:wwDatePicker>

Then add script like this to submit the form:

<script>
    function clientSelect(dateString,datePickerElement){
        $("#form1").submit();
    }
</script>

See also:

Class wwDatePicker

© West Wind Technologies, 1996-2019 • Updated: 07/25/16
Comment or report problem with topic