Monday, October 10, 2011

Focus on textbox

    $(document).ready(function () {
         $("#cphPageContent_CtlAddandEditProject1_txtTitle").focus();
     });

1 comment:

  1. Before this source code was brought to my attention I usually brought focus to a text box by looking at it through a magnifying glass. Now this archaic practice is behind me. This has saved me minutes every day as I can now look for the blinky line (I call him Larry - HELLO LARREY) instead of reaching for my magnifying glass. I suspect the Margery keeps moving it and I have reported her to the local Police, Interpol and NASA.

    ReplyDelete