Let's say I have a line that looks like this:
'Welcome, your bed is made, your tea is ready.'
Using jquery, how can I remove all characters after the last comma, including the last comma, so that the string appears as:
'Welcome, your bed is made'
source
share