Remove a previously-attached binding to an IP address:port pair, naming context, event handler, communication channel, or other system object. See [tag:bind] for a partial list of the common uses of the bind/unbind concept.
Questions tagged [unbind]
360 questions
5
votes
2 answers
Unbind a jQuery Plugin?
I have a plugin like
$.fn.mycoolplugin
which binds mousemove to the document like
$(document).("mousemove", function() {
//bunch of stuff
});
after you call the function on a selector
$('.myclass').mycoolplugin();
How would I unbind this…

Tom
- 53
- 1
- 3
5
votes
4 answers
remove/unbind hover on anchors
html
Home
css
a {
color: blue;
}
a:hover {
color: red;
}
now as you can see now would be color red on hover.
Question
How do I remove hover via jQuery?
I have tried:
$('a').unbind('hover'); and…

Reigel Gallarde
- 64,198
- 21
- 121
- 139
4
votes
1 answer
How to unbind jquery.mousewheel temporarily
I am making a page based on isotope. The main display scrolls horizontally, and I've taken the default mousewheel action using the jquery.mousehweel script. I want to give the default action back to the user when an article is opened, and stop it…

Graham Morley
- 450
- 1
- 9
- 20
4
votes
3 answers
Unbind hover event on a set of img
I have a problem with a set of images. My aim is to show an related-image when you hover a thumbnail, and hide it when you roll out the image. The problem is that I need to put an delay() on the hover beacuse of the design of the module, having 3…

Manu
- 563
- 1
- 5
- 18
4
votes
2 answers
Use Chrome extension to unbind click events?
I'm trying to make an extension that unbinds a click event added by the website itself.
The website uses jQuery, which would make this insanely simple:
jQuery('a[rel]').unbind('click');
The problem is that my extension (using "content_scripts")…

Rudie
- 52,220
- 42
- 131
- 173
4
votes
1 answer
jQuery unbinding a large number of events
I'm writing a program with two keyboard modes using jquery.hotkeys.js, I'm seeing some slowdown and flashing when unbinding all keydown events. Is there a better way to do this?
function bindAll() {
//bind all keystroke events
…

jjclarkson
- 5,890
- 6
- 40
- 62
4
votes
6 answers
Passing jQuery .click() a function as a variable
I'm working with a tabbed interface and have the following jQuery function set up to handle the click events of my tabs.
$(document).ready(function () {
$('a#foo').click(function() {
//content, various calls
return false;
…

keybored
- 5,194
- 13
- 45
- 70
4
votes
1 answer
How to "unbind" a socket programmatically?
1) The socket doesn't seem to unbind from the LocalEndPoint until the process ends.
2) I have tried the solutions from the other question, and also tried waiting a minute - to no avail.
3) At the moment I have tried the below to get rid of the…

ryan1894
- 43
- 1
- 2
- 4
4
votes
2 answers
Jquery: Small bind hover/unbind snippet of code, few lines long, don't know what's wrong
I've created DIV.cb-toggle, when the user hovers over this div, it animates to Orange, when they hover off of this div, it animates back to gray, when the user clicks this div, it animates to blue, telling the user that it's been selected. So when…

android.nick
- 11,069
- 23
- 77
- 112
4
votes
3 answers
jquery: bind multiple events, then unbind a couple of them? is this right?
bind multiple events, then unbind a couple of them? is this right?
basically when you hover over the element, the background color changes, then changes back when you hover out of the element, but when you click the element i want to disable the…

android.nick
- 11,069
- 23
- 77
- 112
4
votes
3 answers
Disable a jQuery function onClick then enable function
I'm using three jQuery functions in my website.
In my function.js file, I also use document.ready to call my functions.
Here is my jQuery code :
$(document).ready(function() {
bottom_cartouche();
pre_scroll_cartouche_top();
…

mmdwc
- 1,095
- 6
- 27
- 53
4
votes
3 answers
Unbind an event from Document : jquery
Binding a function on document all element having class SearchableCol
jQuery(document).on("click", ".SearchableCol", nwcsClickFunc);
I am trying below two methods to unbind, nothing is working.
jQuery(document).unbind("click",…

Anil
- 3,722
- 2
- 24
- 49
4
votes
2 answers
jQuery sortable() is not working after $(document).unbind('mousemove')
The jQuery Sortable() is working well, and if I try to destroy and create the sortable, also working well.
but if try to $(document).unbind('mousemove') and recreate sortable, it only works once and then never work.
I know I can change the code; but…

Dai-Hyun Lim
- 209
- 2
- 7
3
votes
7 answers
jQuery Allow only one click before .ajax()
I am trying to allow a button to be clicked only once and then some data be submitted via ajax. The problem I am facing is that a user can click 50x and the data is POST submitted each time ?
jQuery("#id").unbind('click');
jQuery.ajax({
type:…

Tom
- 33
- 1
- 3
3
votes
3 answers
jQuery/Javascript temporarily disable events attached by addEventListener/attachEvent
Is there a way to temporarily disable an event listener?
In my case, I have a third party library (not jQuery centric) that creates mouseover/mouseout events on an element using addEventListener/attachEvent.
Under certain circumstances another…

xzyfer
- 13,937
- 5
- 35
- 46