Pads text with spaces on the left so that it is a certain length.
padleft ( text, length )
text: (Text) The text to be padded.
length: (Number) The target number of characters desired in the final text.
Spaces will be added until the text has the number of characters entered for the length parameter.
Text longer than the specified length remains untouched.
You can experiment with this function in the test box below.
On This Page