js jquery class ending with string

JavaScript
$('div[class^="begening-"][class$="-ending"]')
Source

Also in JavaScript: