I m having a problem with jQtouch when using tap on links,
I m trying to get a link to change background color when tapped a la iphone appstore (the blue color)
so I m using this code :
<script>
var jQT = new $.jQTouch({
statusBar: black ,
useFastTouch: true
});
$(function(){
$("a").live( tap , function() {
$(this).addClass("active");
},function() {
$(this).removeClass("active");
});
});
</script>
the ".active" style contains the blue background :
.active {
background-image: -webkit-gradient(linear, left top, left bottom, from(#048bf4), to(#015de6));
}
and links are like this :
<a id="a" href="http://google.com"><img src="someimage.png"><div>Google</div></a>
The problem is, when I tap the link, the background changes as expected but the link doesn t work and the new background is not removed when I remove the finger ^^
Could someone point out what I m doing wrong :/ ?