Wednesday, 14 February 2018

Call button on hit enter key in a text box

<script type="text/javascript">
    function ApplyFilterOnEnterKey(e) {
        if (e.keyCode == 13) {
            document.getElementById("_ctl0:mainContent:Search").click();
            return false;
        }
    }
</script>


Add the following attribute to the textbox:
onkeypress="return ApplyFilterOnEnterKey(event)"


No comments:

Setup Windows Local Account without the Internet

During the Windows setup,  On the WiFi screen, press SHIFT + F10  or  FN + SHIFT + F10  This will open the command prompt window with admini...