The dropdown menu doesnt work on iPad or iPhone, because i think, iphone and ipad dont know the ' hover' function.
I found a way to fix this:
- Code: Select all
<script type="text/javascript">
$(function(){
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) {
$(".menu li a").click(function(){
//we just need to attach a click event listener to provoke iPhone/iPod/iPad's hover event
//strange
});
}
});
</script>
I tested it and it works on a iphone.
But, is this the right way (and code) to get this working?