How to remove Space from starting and ending of string using jQuery
Introduction: Hello Guys, “ Welcome back” Today i am here with another one new great article. In this article I will explain that how to remove White Space from starting and ending of entered string by the user using jQuery. When user click on the Remove Button then a jQuery event handler will be called and the whitespaces will be remove White Space from starting and ending of entered string by the in the TextBox using jQuery. HTML code of the program On the HTML page there will be Two Controls, one is text box with the id named txt_name for to enter the input by the user. And a button with the id named button_remove for removing or deleting the whitespaces from the entered String by the user. < input type ="text" id ="text_name" value =" Sanjeev Kumar " /> < input type ="button" id ="button_remove" value ="Delete Whitespace" /> jQuery Code On the HTML page document.ready event handl...