what do I need to change here to work the code only on mobile devices, and to be disabled on computers?
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<body>
<ul id="primary-menu">
<li class="menu-item-has-children">
<a href="http://example.org">Click me</a>
</li>
</ul>
</body>
$( document ).ready(function() {
$("ul#primary-menu > li.menu-item-has-children > a").one("click", function(e) {
e.preventDefault();
});
});