How can I clear multiple DatePicker in a single line

3 posts, 1 answers
  1. Ambica
    Ambica avatar
    6 posts
    Member since:
    Dec 2012

    Posted 06 Feb 2013 Link to this post

    Hi,

    I used to write below code in order to clear my kendo DatePicker value 

          $("#inputEndDate").data("kendoDatePicker").value(null);
         $("#inputEffEndDate").data("kendoDatePicker").value(null);
    ......
    ........

    I just wondering is there any approach to clear all date picker fields in single line ?? As we used  to clear all inputs in a page like below
     eg : $(input).val('');

    Thanks in advance
    Ambica
  2. Answer
    Holger
    Holger avatar
    77 posts
    Member since:
    Nov 2012

    Posted 06 Feb 2013 Link to this post

    Hi,

    you can use the following statement to clear all Kendo date pickers: $(".k-datepicker input").val('');

    Please have a look at this JS Bin sample: http://jsbin.com/udixib/2/edit

    Regards,
    Holger
  3. Kendo UI is VS 2017 Ready
  4. Ambica
    Ambica avatar
    6 posts
    Member since:
    Dec 2012

    Posted 06 Feb 2013 Link to this post

    Hi Holger,

    Thank u so much :)
Back to Top