Text box auto select all text in jquey

Text box auto select all text for all text box with jqery in asp.net


<script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="js/jquery-ui-1.7.2.custom.min.js" type="text/javascript"></script>

// Text box auto select all text for all text box
        $(document).ready(function () {
            $("INPUT[type='text']").click(function () { selectAllText(jQuery(this)) });

        });

        function selectAllText(textbox) {
            textbox.focus();
            textbox.select();
        }

Live Demo : Here
Text box auto select all text in jquey Text box auto select all text in jquey Reviewed by Bhaumik Patel on 5:45 AM Rating: 5