I have been using "overflow-wrap: break-word;" in a CSS class and the element having that class.
Long story but I want to hard code the style into the element, however there doesn't seem to be a syntax for overflow-wrap via element.style....
You can apply css to an object using jQuery like this:
$('#element').css('overflow-wrap', 'break-word');
If you are dynamically adding elements then I would suggest you write this as a function that is called whenever a new element is added, probably using an event listener, that you can pass your updated style values to as parameters. Something like:
updateDOMStyle('<style>','<value>');