Tuesday, February 22, 2011

How to filter out space in textbox by JQuery?

How to filter out space in textbox by JQuery?
    $("#<%=TextBox.ClientID %>").keyup(function () {
        var trimspace = $("#<%=TextBox.ClientID %>").val().trim();
        $("#<%=TextBox.ClientID %>").val(trimspace);
    });

No comments:

Post a Comment