Select all on on focus doesn't work

3 posts, 1 answers
  1. danparker276
    danparker276 avatar
    389 posts
    Member since:
    Aug 2010

    Posted 05 Aug 2014 Link to this post

                $("#sampleDate").focus(function () {
                    $(this).select();
                });

    add this doesn't seem to work.  Is there a clear button?
  2. Answer
    Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2159 posts

    Posted 05 Aug 2014 Link to this post

    Hello Dan,


    Using the same code with a timeout seems to work on my side. Here is a runnable example, which demonstrates this. Regarding the second question, could you please elaborate what are you trying to achieve?

    I am looking forward to hearing from you.

    Regards,
    Dimiter Madjarov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. danparker276
    danparker276 avatar
    389 posts
    Member since:
    Aug 2010

    Posted 05 Aug 2014 in reply to Dimiter Madjarov Link to this post

    sorry i didn't use the timeout, thanks
Back to Top