As a beginner in JavaScript, I am looking for a way to remove the data-toggle attribute when the screen size is less than 760px and have the href attribute work. Unfortunately, I am unsure of how to achieve this. Below is the code snippet that I am working with:
<div class="portfolio logo1 mix_all" data-cat="logo" style="display: inline-block; opacity: 1;">
<div class="portfolio-wrapper">
<a data-toggle="modal" data-target="#myModal1" href="http://www.example.com/main/includes/onepager/business_service/example/index.php" class="b-link-stripe b-animate-go thickbox">
<img class="p-img" src="http://www.example.com/theme/mobile-page-files/web/images/small-portfolio/example.JPG" />
<div class="b-wrapper">
<h2 class="b-animate b-from-left b-delay03">
<img src="http://www.example.com/theme/mobile-page-files/web/images/link-ico.png" alt=""/>
</h2>
</div>
</a>
</div>
<div class="port-info">
<h4>
<a href="http://www.example.com/main/includes/onepager/business_service/example/index.php"> Example</a>
</h4>
</div>
</div