Introduction:
Description:
In previous articles I explained jQuery Remove first/last character from string, jQuery Drag and Drop Example and many articles relating to JQuery. Now I will explain how to remove or delete white spaces from string using JQuery in asp.net.
In previous articles I explained jQuery Remove first/last character from string, jQuery Drag and Drop Example and many articles relating to JQuery. Now I will explain how to remove or delete white spaces from string using JQuery in asp.net.
To
remove or delete white spaces from string we can use default jQuery
function trim() but it will remove only starting and ending spaces but spaces within string will be same
because of that we need to use regular expression to remove white spaces from
string for that we need to write codesnippet like as shown below