I'm having a funny issue, I'd like to remove the <br> under 760px width resolution. I've been using this which always worked, however it doesn't work on a new website I'm working on.
$(function() {
if ($(window).width() < 760) {
$('p.nobreak br').replaceWith(' ');
$('span.vert-align.centerone br').replaceWith(' ');
}
});
The funny part is if instead of < 760 I change by > 760 (for higher resolution) and it does work! But I need this for < 760. Any advice guys?