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);

Parameters

strstringstring to trim

Returns

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