I just kinda had the same problem with my links not working right on my friend's iPhone. I deleted the href="#"
from mine and the buttons work perfectly fine, except I have my buttons set up a little differently than you with the JavaScript.
The way I have it set up is like this
$(document).ready(function () {
var buttons=$('#button01,#button02,#button03,#button04,#button05');
buttons.click(function(){
$(this).removeClass('off-class').addClass('on-class');
buttons.not(this).removeClass('on-class').addClass('off-class');
})
Then I trigger the frames I want to pop up with
if ($('#button01').hasClass('on-class')){
$('#frame01').removeClass('hidden');
$('#frame02,#frame03,#frame04,#frame05').addClass('hidden');
}else{
$('#frame01').addClass('hidden');
I don't know how you have yours set up, but removing the href="#"
with this set up worked on mine.