Tuesday, July 13, 2010

JQuery for Web Design using JQuery Web Broswer API

JQuery for Web Design using JQuery Web Broswer API

bind and unbind events with colored button.


function ClickMe() {
$("div").show().fadeOut("slow");
}
$("#bind").click(function () {
$("jejeje").live("click", ClickMe)
.text("Can Click!");
});
$("#unbind").click(function () {
$("jejeje").die("click", ClickMe)
.text("Does nothing...");
});

2 comments: