javascript - How to make .unclick = unbind('click' in jquery? -
I need a shortcut notation for 'unbind' (click on 'Unbind'. / P>
I think you want something like this:
$ .fn ['Unclick'] = Function () {return.unbind ('click');}
The following two lines are equivalent:
$ (...). Unbind ('Click'); $ (...). Unclick ();
for all events (list of events copied from):
< Pre> var events = ('blurring, focus, weight, resize, scroll, etc. Load, click, click, '+' mousezoon, mouseup, mouseover, mouseover, mouseout, mouseover, '+' mouseover (',',;); JQuery.each (Events, Function (Eye, Name) {jQuery. Fn ['un' + name] = function (change, selection, submit, keydown, keypress, key, error)) {back to this unbund (name);};});
< / Div>
Comments
Post a Comment