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

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -