jquery vetran, jquerymobile noob question

jquery vetran, jquerymobile noob question

Hi guys. So I'm trying to simple change the transparency of a link when someone touches it. For the life of me, I can't sort out where to put my code. I started out with a simple app created by jquerymobile's site.

So I have the js that it creates that starts with:
(function($) {
                $.widget('mobile.tabbar', $.mobile.navbar, { ....


I'm just trying to sort out where I would put my code within the pre-created script?

$('.mainPageButton').bind("vmousedown", function(event) {
         alert('this is working.');
         $(this).addClass('transparent');
         });

Sorry for the noob question.


Thanks!