How to trim a string value from a string?

For example: Need only " 14393430" from the string "Cart saved as Quote : 14393430" use the below function:

var quote = "Cart saved as Quote : 14393430"

var quotenum=quote.substring(quote.indexOf(':') + 1)


Last updated: June 26, 2023

If you have any feedback on this topic, please contact us at documentation@appvance.ai


Revision #4
Created 2026-07-31 15:40:10 UTC by Admin
Updated 2026-10-14 14:17:29 UTC by AI_Mananger