What is Binding event in Jquery plugin exactly for? -
what binding event in jquery for? dont understand purpose of it.
.bind("loaded.jstree", function (event, data) { $("#demo1").css("display", "block"); })
it binding custom event , can called later using .trigger
.
//custom event loaded.jstree registered .bind("loaded.jstree", function (event, data) { $("#demo1").css("display", "block"); })
you can phone call custom event like,
.trigger('loaded.jstree', ..
jquery
No comments:
Post a Comment