Check documentation for the latest version of dhtmlxSuite trim DHTMLX Docs

trim

removes spaces in the beginning and end of string

string trim(string str);
strstringstring to trim
stringstring w/o spaces in the beginning and end of string

Example

var firstName = window.dhx.trim("  John Black "); // firstName = "John Black";

Back to top