I would like to rembrand the href of an element only in the mobile version, which would be at 769px, the href I would like to remove is from a menu, this menu is the same as the desktop version, it only gains another css upon entering 769px, I tried adding a new class when entering 769px to be able to modify this href without having to tinker with the desktop menu, but that does not work, when it comes back the desktop version is with the href removed.
This class .menu-mobile
only exists in 769px and goes up to 769px,
but as the menu is the same in both sizes it only gains one more class, I believe that is the reason for not working, because it returns it only loses the class, but the change is already made soon lose this class no has no effect whatsoever. How could I solve this?
Remove the href only at 769px.
Code that I tried to use
$j(document).ready(function() {
$j('.menu-mobile a').removeAttr('href');
});