made a var mb = $("MyButton"); and then just used mb to call methods.