Hi all,
I wrapped a link with a div-element
$("a[href$='name']").wrap("<div />");
The div-element causes line breaks. To prevent this behaviour I'd like to style my div-element with style="white-space: nowrap;".
I tried
$("a[href$='name']").wrap("<div style='white-space: nowrap;'></div>");
For some reason it doesn't work. There is no error shown. The line break however is still active.
What's wrong with my snippet?
Thanks for your help.