Wednesday, 5 February 2014

How to focus and select all a text box using javascript?

How to focus and select all a text box using javascript?

<script type="text/javascript">
    function jsFocus(ctrlId) {
        document.getElementById(ctrlId).focus();
        document.getElementById(ctrlId).select();
    }
</script>

0 comments:

Post a Comment